Microsoft SDK for Java

writePermission

The writePermission method of the PermissionTreeOutput Class contains the following signatures:

writePermission(String s, int level, IPermission perm)
writePermission(String s, int level, IPermission perm, boolean highRisk)

writePermission(String s, int level, IPermission perm)

Creates a node with the specified string as the name for a new permission in the display tree.

Syntax

public void writePermission(String s, int level, IPermission perm) throws IOException;

Parameters

s The name of the permission.
level The depth of the tree at which to place the node.
perm The permission that is being displayed at the current node.

Exceptions

IOException if an error occurs while writing to the output stream.

writePermission(String s, int level, IPermission perm, boolean highRisk)

Creates a node with the specified string as the name for a new permission in the display tree. In addition, the permission can be flagged as high risk.

Syntax

public void writePermission(String s, int level, IPermission perm, boolean highRisk) throws IOException;

Parameters

s The name of the permission.
level The depth of the tree at which to place the node.
perm The permission that is being displayed at the current node.
highRisk Specifies whether this permission should be flagged as high risk.

Exceptions

IOException if an error occurs while writing to the output stream.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.