Compartilhar via


IsSubsetOf(System.Security.IPermission) Method

The IsSubsetOf method of the WebPartPermission 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 of the same type as the current permission.

Return Value

A Boolean value that is 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