XamlAccessLevel.AssemblyAccessTo Method (Assembly)

.NET Framework (current version)
 

Returns a XamlAccessLevel instance based on an assembly requested by Assembly.

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

public static XamlAccessLevel AssemblyAccessTo(
	Assembly assembly
)

Parameters

assembly
Type: System.Reflection.Assembly

The assembly for the request.

Return Value

Type: System.Xaml.Permissions.XamlAccessLevel

A XamlAccessLevel instance, with the assembly value used as source information for XamlAccessLevel.AssemblyAccessToAssemblyName.

Exception Condition
ArgumentNullException

assembly is null.

.NET Framework
Available since 4.0
Return to top
Show: