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.PermitOnly

Permit only the permissions in the set to be effective. Subsequent demand of any permission not in the set will fail, even if the permission was granted to the code. The duration of permit-only is until another permit-only in the same stack frame, or until return from the stack frame.

[Visual Basic]
Overridable Public Sub PermitOnly()
[C#]
public virtual void PermitOnly();
[C++]
public: virtual void PermitOnly();
[JScript]
public function PermitOnly();

Remarks

Use permit-only to temporarily limit code's granted permissions to those specified by the permission set.

See Also

PermissionSet Class | PermissionSet Members | System.Security Namespace