XamlAccessLevel.PrivateAccessTo Method (Type)

.NET Framework (current version)
 

Returns a XamlAccessLevel instance based on a specific type specified by Type.

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

public static XamlAccessLevel PrivateAccessTo(
	Type type
)

Parameters

type
Type: System.Type

The Type to request access for.

Return Value

Type: System.Xaml.Permissions.XamlAccessLevel

A XamlAccessLevel instance, with the type value used as source information for XamlAccessLevel.PrivateAccessToTypeName and XamlAccessLevel.AssemblyAccessToAssemblyName determined by reflection on the type.

Exception Condition
ArgumentNullException

type is null.

.NET Framework
Available since 4.0
Return to top
Show: