Düzenle

Aracılığıyla paylaş


XamlAccessLevel.AssemblyAccessTo Method

Definition

Returns a XamlAccessLevel instance based on an assembly.

Overloads

AssemblyAccessTo(Assembly)

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

AssemblyAccessTo(AssemblyName)

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

AssemblyAccessTo(Assembly)

Source:
XamlAccessLevel.cs
Source:
XamlAccessLevel.cs

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

public:
 static System::Xaml::Permissions::XamlAccessLevel ^ AssemblyAccessTo(System::Reflection::Assembly ^ assembly);
public static System.Xaml.Permissions.XamlAccessLevel AssemblyAccessTo (System.Reflection.Assembly assembly);
static member AssemblyAccessTo : System.Reflection.Assembly -> System.Xaml.Permissions.XamlAccessLevel
Public Shared Function AssemblyAccessTo (assembly As Assembly) As XamlAccessLevel

Parameters

assembly
Assembly

The assembly for the request.

Returns

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

Exceptions

assembly is null.

Applies to

AssemblyAccessTo(AssemblyName)

Source:
XamlAccessLevel.cs
Source:
XamlAccessLevel.cs

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

public:
 static System::Xaml::Permissions::XamlAccessLevel ^ AssemblyAccessTo(System::Reflection::AssemblyName ^ assemblyName);
public static System.Xaml.Permissions.XamlAccessLevel AssemblyAccessTo (System.Reflection.AssemblyName assemblyName);
static member AssemblyAccessTo : System.Reflection.AssemblyName -> System.Xaml.Permissions.XamlAccessLevel
Public Shared Function AssemblyAccessTo (assemblyName As AssemblyName) As XamlAccessLevel

Parameters

assemblyName
AssemblyName

The assembly name for the request.

Returns

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

Exceptions

assemblyName is null.

assemblyName is not a valid fully qualified assembly name.

Applies to