IsSubsetOf(System.Security.IPermission) Method

The IsSubsetOf method of the SharePointPermission class determines whether the current permission is a subset of the specified permission.

Parameters

target    A permission that is to be tested for the subset relationship. This permission must be the same type as the current permission.

Return Value

true if the current permission is a subset of the specified permission; otherwise, false.

Exceptions

Exception type Condition
ArgumentException The target parameter is not a null reference (Nothing in Visual Basic) and is not of the same type as the current permission.

Remarks

The current permission is a subset of the specified permission if the current permission specifies a set of operations that is wholly contained by the specified permission.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security