Tests if the current permission object is a subset of- that is, specifies a set of operations that is wholly contained by- the specified permission object.
[Visual Basic] Function IsSubsetOf( _ ByVal target As IPermission _ ) As Boolean [C#] bool IsSubsetOf( IPermission target ); [C++] bool IsSubsetOf( IPermission* target ) = 0; [JScript] function IsSubsetOf( target : IPermission ) : Boolean;
True if the current permission object is a subset of the specified permission object; false otherwise.
Exception Type | Condition |
---|---|
ArgumentException | if target is an object that is not of the same type as the current permission object. |
A permission is a subset of the target permission if all demands that succeed for the permission also succeed for the target.
IPermission Interface | IPermission Members | System.Security Namespace