NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

PermissionSet.GetPermission

Gets a permission object of the specified type if it exists in the set.

[Visual Basic]
Overridable Public Function GetPermission( _
   ByVal permClass As Type _
) As IPermission
[C#]
public virtual IPermission GetPermission(
   Type permClass
);
[C++]
public: virtual IPermission* GetPermission(
   Type* permClass
);
[JScript]
public function GetPermission(
   permClass : Type
) : IPermission;

Parameters

permClass
Type of the permission object to get

Return Value

Copy of the permission object of type permClass contained in the permission set, or NULL if none exists.

Remarks

Returns NULL for the special case of an unrestricted permission set, even though the permission set effectively contains all permissions it doesn't have any actual instances to be returned here.

See Also

PermissionSet Class | PermissionSet Members | System.Security Namespace