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::Union Method (IPermission^)

.NET Framework (current version)
 

Returns a new permission that is the union of the current permission and the specified permission. ClaimsPrincipalPermission object that has all of the resource-action pairs that are present in the current instance and the target instance.

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

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

Parameters

target
Type: System.Security::IPermission^

The permission to combine with current permission. It must be of type ClaimsPrincipalPermission.

Return Value

Type: System.Security::IPermission^

A new ClaimsPrincipalPermission that represents the union 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 all of the resource-action pairs that are present in the current permission and all of the resource-action pairs that are present the specified permission. For a Demand to succeed on the new permission, the current principal must be authorized for all of the resource-action pairs that existed in the current permission and all of the resource-action pairs that existed in the specified permission.

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