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.

ClaimsPrincipalPermission::Intersect Method (IPermission^)

.NET Framework (current version)
 

Returns a permission that is the intersection of the current permission and the specified permission.

Namespace:   System.IdentityModel.Services
Assembly:  System.IdentityModel.Services (in System.IdentityModel.Services.dll)

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

Parameters

target
Type: System.Security::IPermission^

The permission to intersect with the current permission. It must be an instance of ClaimsPrincipalPermission.

Return Value

Type: System.Security::IPermission^

A new ClaimsPrincipalPermission that represents the intersection of the current permission and the specified permission; or null if target is null or is not an instance of ClaimsPrincipalPermission.

The permission that is returned has only the resource-action pairs that were present both in the current permission and in the specified permission. Resource-action pairs that existed in only one or the other of the permissions are not included. For a Demand to succeed on the new permission, the current principal only needs to be authorized for the resource-action pairs that were common to the current permission and the specified permission.

.NET Framework
Available since 4.5
Return to top
Show:
© 2017 Microsoft