Intersect Method
Collapse the table of content
Expand the table of content

PrintingPermission.Intersect Method (IPermission)

 

Creates and returns a permission that is the intersection of the current permission object and a target permission object.

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

public override IPermission Intersect(
	IPermission target
)

Parameters

target
Type: System.Security.IPermission

A permission object of the same type as the current permission object.

Return Value

Type: System.Security.IPermission

A new permission object that represents the intersection of the current object and the specified target. This object is null if the intersection is empty.

Exception Condition
ArgumentException

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

The intersection of two permissions is a permission that describes the set of operations they both hold in common. Specifically, it represents the minimum permissions required for a demand to pass both permissions.

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft