Export (0) Print
Expand All

GacIdentityPermission.IsSubsetOf Method

Indicates whether the current permission is a subset of the specified permission.

Namespace:  System.Security.Permissions
Assembly:  mscorlib (in mscorlib.dll)

public override bool IsSubsetOf(
	IPermission target
)

Parameters

target
Type: System.Security.IPermission

A permission object to test for the subset relationship. The permission must be of the same type as the current permission.

Return Value

Type: System.Boolean
true if the current permission is a subset of the specified permission; otherwise, false.

Implements

IPermission.IsSubsetOf(IPermission)

ExceptionCondition
ArgumentException

target is not null and is not of the same type as the current permission.

The current permission is a subset of the specified permission if the current permission represents a set of operations that is wholly contained by the specified permission. If this method returns true, the current permission represents no more access to the protected resource than does the specified permission.

A GacIdentityPermission only supports set operations (the IsSubsetOf, Intersect, and Union methods) when the current permission is equal to the specified permission.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft