Edit

Share via


ITypeResolutionService.GetAssembly Method

Definition

Gets the requested assembly.

Overloads

GetAssembly(AssemblyName)

Gets the requested assembly.

GetAssembly(AssemblyName, Boolean)

Gets the requested assembly.

GetAssembly(AssemblyName)

Gets the requested assembly.

public:
 System::Reflection::Assembly ^ GetAssembly(System::Reflection::AssemblyName ^ name);
public System.Reflection.Assembly GetAssembly (System.Reflection.AssemblyName name);
public System.Reflection.Assembly? GetAssembly (System.Reflection.AssemblyName name);
abstract member GetAssembly : System.Reflection.AssemblyName -> System.Reflection.Assembly
Public Function GetAssembly (name As AssemblyName) As Assembly

Parameters

name
AssemblyName

The name of the assembly to retrieve.

Returns

An instance of the requested assembly, or null if no assembly can be located.

Applies to

GetAssembly(AssemblyName, Boolean)

Gets the requested assembly.

public:
 System::Reflection::Assembly ^ GetAssembly(System::Reflection::AssemblyName ^ name, bool throwOnError);
public System.Reflection.Assembly GetAssembly (System.Reflection.AssemblyName name, bool throwOnError);
public System.Reflection.Assembly? GetAssembly (System.Reflection.AssemblyName name, bool throwOnError);
abstract member GetAssembly : System.Reflection.AssemblyName * bool -> System.Reflection.Assembly
Public Function GetAssembly (name As AssemblyName, throwOnError As Boolean) As Assembly

Parameters

name
AssemblyName

The name of the assembly to retrieve.

throwOnError
Boolean

true if this method should throw an exception if the assembly cannot be located; otherwise, false, and this method returns null if the assembly cannot be located.

Returns

An instance of the requested assembly, or null if no assembly can be located.

Applies to