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

Domain.GetAssembly Method (String, BindingOptions)

Gets an assembly given its name 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(
	string assemblyName,
	BindingOptions bindingOptions = BindingOptions.Default
)

Parameters

assemblyName
Type: System.String
Assembly name.
bindingOptions (Optional)
Type: PostSharp.Sdk.CodeModel.BindingOptions
Binding options.

Return Value

Type: AssemblyEnvelope
The assembly named assemblyName.
See Also