XamlLoadPermission.Includes Method (XamlAccessLevel)

.NET Framework (current version)
 

Returns whether this XamlLoadPermission includes a specified XamlAccessLevel in its AllowedAccess list.

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

public bool Includes(
	XamlAccessLevel requestedAccess
)

Parameters

requestedAccess
Type: System.Xaml.Permissions.XamlAccessLevel

The specific XamlAccessLevel to check for.

Return Value

Type: System.Boolean

true if requestedAccess exists as an item in the AllowedAccess list of the current XamlLoadPermission. Otherwise, false.

Exception Condition
ArgumentNullException

requestedAccess is null.

.NET Framework
Available since 4.0
Return to top
Show: