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