Microsoft SDK for Java

permissionNameToID

This method of the PolicyEngine Class creates a PermissionID object from a permission name.

Syntax

public static synchronized PermissionID permissionNameToID(String pname);

Return Value

Returns the PermissionID that maps to the specified permission name.

Parameters

pname The name of the permission.

Remarks

Permission names must be the name of the class that implements the permission. The permission class must be a fully trusted system class. Only fully trusted code can create new permission identifiers.

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