PrintingPermission.IsSubsetOf Method (IPermission)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Determines whether the current permission object is a subset of the specified permission.

Namespace:   System.Drawing.Printing
Assembly:  System.Drawing (in System.Drawing.dll)

public override bool IsSubsetOf(
	IPermission target
)

Parameters

target
Type: System.Security.IPermission

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

Return Value

Type: System.Boolean

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

Exception Condition
ArgumentException

target is an object that is not of the same type as the current permission object.

.NET Framework
Available since 1.1
Return to top
Show: