편집

다음을 통해 공유


XamlLoadPermission.Union(IPermission) Method

Definition

Creates a permission that is the union of the current XamlLoadPermission and the specified permission.

public:
 override System::Security::IPermission ^ Union(System::Security::IPermission ^ other);
public override System.Security.IPermission Union (System.Security.IPermission other);
override this.Union : System.Security.IPermission -> System.Security.IPermission
Public Overrides Function Union (other As IPermission) As IPermission

Parameters

other
IPermission

A XamlLoadPermission to combine with the current XamlLoadPermission. Can be null.

Returns

A new XamlLoadPermission that represents the union of the current XamlLoadPermission and the specified XamlLoadPermission.

Exceptions

other is not null or is not a XamlLoadPermission.

Remarks

For union, intersect, and subset logic, IsUnrestricted is checked first, and might return a result based solely on that check. Next, AllowedAccess is checked.

If other is null, the current XamlLoadPermission is returned.

Applies to