XamlLoadPermission::Union Method (IPermission^)
.NET Framework (current version)
Creates a permission that is the union of the current XamlLoadPermission and the specified permission.
Assembly: System.Xaml (in System.Xaml.dll)
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.
Implements
IPermission::Union(IPermission^)| 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
Available since 4.0
Show: