共用方式為


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 ,這個方法會從指定的元件名稱載入元件。

適用於