PrintingPermission.Intersect Method (IPermission)


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

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


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

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