Export (0) Print
Expand All

XamlLoadPermission Constructor (IEnumerable<XamlAccessLevel>)

.NET Framework 4.6 and 4.5

Initializes a new instance of the XamlLoadPermission class, using an enumerable set of specific XamlAccessLevel values.

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

public XamlLoadPermission(
	IEnumerable<XamlAccessLevel> allowedAccess
)

Parameters

allowedAccess
Type: System.Collections.Generic.IEnumerable<XamlAccessLevel>

An enumerable set of specific XamlAccessLevel values.

ExceptionCondition
ArgumentNullException

allowedAccess is null.

ArgumentException

allowedAccess contained invalid information, such as a null item.

A call to this constructor initializes the AllowedAccess collection with each allowedAccess entry as an item, and sets the return for IsUnrestricted to false in the created instance.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft