PostSharp SDK 2023.0 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Domain Class / Domain Methods / Domain.​Get­Assembly Method / Domain.​Get­Assembly Method (IAssembly­Name, Binding­Options, Load­Assembly­Options)

Domain.GetAssembly Method (IAssemblyName, BindingOptions, LoadAssemblyOptions)

Gets an assembly from the current domain given its name or loads it into the domain if not yet present, and specifies binding options.

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
public AssemblyEnvelope GetAssembly(
	IAssemblyName assemblyName,
	BindingOptions bindingOptions = BindingOptions.Default,
	LoadAssemblyOptions loadAssemblyOptions = LoadAssemblyOptions.None
)

Parameters

assemblyName
Type: IAssemblyName
Name of the assembly to load.
bindingOptions (Optional)
Type: PostSharp.Sdk.CodeModel.BindingOptions
Binding options.
loadAssemblyOptions (Optional)
Type: PostSharp.Sdk.CodeModel.LoadAssemblyOptions

[Missing <param name="loadAssemblyOptions"/> documentation for "M:PostSharp.Sdk.CodeModel.Domain.GetAssembly(PostSharp.Reflection.IAssemblyName,PostSharp.Sdk.CodeModel.BindingOptions,PostSharp.Sdk.CodeModel.LoadAssemblyOptions)"]

Return Value

Type: AssemblyEnvelope
The AssemblyEnvelope corresponding to assemblyName.
See Also