AssemblyContextControlItem.GetAssembly Method

Definition

Returns the currently loaded assembly using the multi-targeting support service.

public:
 static System::Reflection::Assembly ^ GetAssembly(System::Reflection::AssemblyName ^ assemblyName, System::Activities::Presentation::Hosting::IMultiTargetingSupportService ^ multiTargetingService);
public static System.Reflection.Assembly GetAssembly (System.Reflection.AssemblyName assemblyName, System.Activities.Presentation.Hosting.IMultiTargetingSupportService multiTargetingService);
static member GetAssembly : System.Reflection.AssemblyName * System.Activities.Presentation.Hosting.IMultiTargetingSupportService -> System.Reflection.Assembly
Public Shared Function GetAssembly (assemblyName As AssemblyName, multiTargetingService As IMultiTargetingSupportService) As Assembly

Parameters

assemblyName
AssemblyName

The assembly name.

multiTargetingService
IMultiTargetingSupportService

The multi-targeting service used to get the proper version of the loaded assembly that corresponds to the target .NET Framework of the current project.

Returns

The assembly.

Remarks

If multiTargetingService is null, this method loads the assembly from the specified assembly name.

Applies to