ClaimsPrincipalPermission.Union(IPermission) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public:
virtual System::Security::IPermission ^ Union(System::Security::IPermission ^ target);
public System.Security.IPermission Union (System.Security.IPermission target);
abstract member Union : System.Security.IPermission -> System.Security.IPermission
override this.Union : System.Security.IPermission -> System.Security.IPermission
Public Function Union (target As IPermission) As IPermission
Parameters
- target
- IPermission
The permission to combine with current permission. It must be of type ClaimsPrincipalPermission.
Returns
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.
Implements
Remarks
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.