XamlLoadPermission::Intersect Method (IPermission^)
.NET Framework (current version)
Creates and returns a XamlLoadPermission that is the intersection of the current XamlLoadPermission and the specified permission.
Assembly: System.Xaml (in System.Xaml.dll)
Parameters
- target
-
Type:
System.Security::IPermission^
A XamlLoadPermission to intersect with the current XamlLoadPermission. Can be null.
Return Value
Type: System.Security::IPermission^A new permission that represents the intersection of the current XamlLoadPermission and the specified XamlLoadPermission. This new permission is null if the intersection is empty.
Implements
IPermission::Intersect(IPermission^)| Exception | Condition |
|---|---|
| ArgumentException | target 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.
.NET Framework
Available since 4.0
Available since 4.0
Show: