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;
Copy of the permission object of type permClass contained in the permission set, or NULL if none exists.
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.
PermissionSet Class | PermissionSet Members | System.Security Namespace