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

Demands that all callers have permissions of the set.

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

Exceptions

Exception Type Condition
SecurityException if any caller does not have the necessary permissions.

Remarks

Use Demand on a permission set to ensure that all callers have all permissions in the set with one operation.

See Also

PermissionSet Class | PermissionSet Members | System.Security Namespace