XamlLoadPermission Constructor (PermissionState)

.NET Framework (current version)
 

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: