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

Denies permissions in the set to effectively not have them granted to the code. A subsequent demand for any permission in the set will fail, even if the permission was granted to the code making the call to Deny.

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

Remarks

Use Deny to temporarily disable permissions granted to code. The duration of Deny is until another Deny in the same stack frame, or until return from the stack frame.

See Also

PermissionSet Class | PermissionSet Members | System.Security Namespace