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();
Exception Type | Condition |
---|---|
SecurityException | if any caller does not have the necessary permissions. |
Use Demand on a permission set to ensure that all callers have all permissions in the set with one operation.
PermissionSet Class | PermissionSet Members | System.Security Namespace