AssemblyContextControlItem.GetAssembly 方法

定义

返回当前使用多目标支持服务加载的程序集。

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

参数

assemblyName
AssemblyName

程序集名称。

multiTargetingService
IMultiTargetingSupportService

多目标服务,用于获取与当前项目的目标.NET Framework相对应的已加载程序集的正确版本。

返回

程序集。

注解

如果 multiTargetingServicenull,则此方法从指定的程序集名称加载程序集。

适用于