XamlLoadPermission::IsSubsetOf Method (IPermission^)
.NET Framework (current version)
Determines whether the current XamlLoadPermission is a subset of the specified permission.
Assembly: System.Xaml (in System.Xaml.dll)
Parameters
- target
-
Type:
System.Security::IPermission^
A permission that is to be tested for the subset relationship. Can be null.
Return Value
Type: System::Booleantrue if the current XamlLoadPermission is a subset of the specified permission; otherwise, false.
Implements
IPermission::IsSubsetOf(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.
If target is null and the current XamlLoadPermission is both IsUnrestricted false and has an empty AllowedAccess list, this method returns true.
.NET Framework
Available since 4.0
Available since 4.0
Show: