XamlAccessLevel.AssemblyAccessTo Method (AssemblyName)

.NET Framework (current version)
 

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

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

public static XamlAccessLevel AssemblyAccessTo(
	AssemblyName assemblyName
)

Parameters

assemblyName
Type: System.Reflection.AssemblyName

The assembly name for the request.

Return Value

Type: System.Xaml.Permissions.XamlAccessLevel

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

Exception Condition
ArgumentNullException

assemblyName is null.

ArgumentException

assemblyName is not a valid fully qualified assembly name.

.NET Framework
Available since 4.0
Return to top
Show: