XamlLoadPermission Constructor (IEnumerable<XamlAccessLevel^>^)
.NET Framework (current version)
Initializes a new instance of the XamlLoadPermission class, using an enumerable set of specific XamlAccessLevel values.
Assembly: System.Xaml (in System.Xaml.dll)
Parameters
- allowedAccess
-
Type:
System.Collections.Generic::IEnumerable<XamlAccessLevel^>^
An enumerable set of specific XamlAccessLevel values.
| Exception | Condition |
|---|---|
| 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
Available since 4.0
Available since 4.0
Show: