XamlLoadPermission.Union Method (IPermission)

.NET Framework (current version)
 

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

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

public override IPermission Union(
	IPermission other
)

Parameters

other
Type: System.Security.IPermission

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

Return Value

Type: System.Security.IPermission

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

Exception Condition
ArgumentException

other is not null or is not a XamlLoadPermission.

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.

.NET Framework
Available since 4.0
Return to top
Show: