XamlLoadPermission Constructor (PermissionState)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the XamlLoadPermission class, using existing permissions.

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

public XamlLoadPermission(
	PermissionState state
)

Parameters

state
Type: System.Security.Permissions.PermissionState

A PermissionState enumeration value.

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.

.NET Framework
Available since 4.0
Return to top
Show: