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!

IPermission.IsSubsetOf

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;

Parameters

target
Another permission object of same type that is to be tested for subset relationship.

Return Value

True if the current permission object is a subset of the specified permission object; false otherwise.

Exceptions

Exception Type Condition
ArgumentException if target is an object that is not of the same type as the current permission object.

Remarks

A permission is a subset of the target permission if all demands that succeed for the permission also succeed for the target.

See Also

IPermission Interface | IPermission Members | System.Security Namespace