AssemblyContextControlItem.GetAssembly 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回当前使用多目标支持服务加载的程序集。
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相对应的已加载程序集的正确版本。
返回
程序集。
注解
如果 multiTargetingService
为 null
,则此方法从指定的程序集名称加载程序集。