Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ResourcePermissionBase::Intersect Method (IPermission^)

 

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

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

public:
virtual IPermission^ Intersect(
	IPermission^ target
) override

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

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

The intersection of two permission objects 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:
© 2017 Microsoft