XamlLoadPermission Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the XamlLoadPermission class.
Overloads
XamlLoadPermission(IEnumerable<XamlAccessLevel>) |
Initializes a new instance of the XamlLoadPermission class, using an enumerable set of specific XamlAccessLevel values. |
XamlLoadPermission(PermissionState) |
Initializes a new instance of the XamlLoadPermission class, using existing permissions. |
XamlLoadPermission(XamlAccessLevel) |
Initializes a new instance of the XamlLoadPermission class, using a single XamlAccessLevel value. |
XamlLoadPermission(IEnumerable<XamlAccessLevel>)
- Source:
- XamlLoadPermission.cs
- Source:
- XamlLoadPermission.cs
- Source:
- XamlLoadPermission.cs
Initializes a new instance of the XamlLoadPermission class, using an enumerable set of specific XamlAccessLevel values.
public:
XamlLoadPermission(System::Collections::Generic::IEnumerable<System::Xaml::Permissions::XamlAccessLevel ^> ^ allowedAccess);
public XamlLoadPermission (System.Collections.Generic.IEnumerable<System.Xaml.Permissions.XamlAccessLevel> allowedAccess);
new System.Xaml.Permissions.XamlLoadPermission : seq<System.Xaml.Permissions.XamlAccessLevel> -> System.Xaml.Permissions.XamlLoadPermission
Public Sub New (allowedAccess As IEnumerable(Of XamlAccessLevel))
Parameters
- allowedAccess
- IEnumerable<XamlAccessLevel>
An enumerable set of specific XamlAccessLevel values.
Exceptions
allowedAccess
is null
.
allowedAccess
contained invalid information, such as a null item.
Remarks
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.
Applies to
XamlLoadPermission(PermissionState)
- Source:
- XamlLoadPermission.cs
- Source:
- XamlLoadPermission.cs
- Source:
- XamlLoadPermission.cs
Initializes a new instance of the XamlLoadPermission class, using existing permissions.
public:
XamlLoadPermission(System::Security::Permissions::PermissionState state);
public XamlLoadPermission (System.Security.Permissions.PermissionState state);
new System.Xaml.Permissions.XamlLoadPermission : System.Security.Permissions.PermissionState -> System.Xaml.Permissions.XamlLoadPermission
Public Sub New (state As PermissionState)
Parameters
- state
- PermissionState
A PermissionState enumeration value.
Remarks
Unrestricted sets the return for IsUnrestricted to true
in the created instance. Any call to this constructor sets the AllowedAccess collection to null
because it is not relevant if permissions are being reported rather than XamlAccessLevel.
Applies to
XamlLoadPermission(XamlAccessLevel)
- Source:
- XamlLoadPermission.cs
- Source:
- XamlLoadPermission.cs
- Source:
- XamlLoadPermission.cs
Initializes a new instance of the XamlLoadPermission class, using a single XamlAccessLevel value.
public:
XamlLoadPermission(System::Xaml::Permissions::XamlAccessLevel ^ allowedAccess);
public XamlLoadPermission (System.Xaml.Permissions.XamlAccessLevel allowedAccess);
new System.Xaml.Permissions.XamlLoadPermission : System.Xaml.Permissions.XamlAccessLevel -> System.Xaml.Permissions.XamlLoadPermission
Public Sub New (allowedAccess As XamlAccessLevel)
Parameters
- allowedAccess
- XamlAccessLevel
The defining XamlAccessLevel value.
Exceptions
allowedAccess
is null
.
Remarks
A call to this constructor initializes the AllowedAccess collection with allowedAccess
as the only item, and sets the return for IsUnrestricted to false
in the created instance.