XamlLoadPermission::IsSubsetOf Method (IPermission^)

.NET Framework (current version)
 

Determines whether the current XamlLoadPermission is a subset of the specified permission.

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

public:
virtual bool IsSubsetOf(
	IPermission^ target
) override

Parameters

target
Type: System.Security::IPermission^

A permission that is to be tested for the subset relationship. Can be null.

Return Value

Type: System::Boolean

true if the current XamlLoadPermission is a subset of the specified permission; otherwise, false.

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
Return to top
Show: