Export (0) Print
Expand All

XamlLoadPermission.IsSubsetOf Method

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

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

public override bool IsSubsetOf(
	IPermission target
)

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.

Implements

IPermission.IsSubsetOf(IPermission)

ExceptionCondition
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

Supported in: 4

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

ADD
Show:
© 2014 Microsoft