ExportProvider ExportProvider ExportProvider ExportProvider Class

定義

擷取符合指定之 ImportDefinition 物件的匯出。Retrieves exports which match a specified ImportDefinition object.

public ref class ExportProvider abstract
public abstract class ExportProvider
type ExportProvider = class
Public MustInherit Class ExportProvider
繼承
ExportProviderExportProviderExportProviderExportProvider
衍生

建構函式

ExportProvider() ExportProvider() ExportProvider() ExportProvider()

初始化 ExportProvider 類別的新執行個體。Initializes a new instance of the ExportProvider class.

方法

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetExport<T,TMetadataView>() GetExport<T,TMetadataView>() GetExport<T,TMetadataView>() GetExport<T,TMetadataView>()

傳回具有從指定型別參數中衍生之合約名稱的匯出。Returns the export with the contract name derived from the specified type parameter. 如果沒有任何項目完全符合匯出結果,則擲回例外狀況。If there is not exactly one matching export, an exception is thrown.

GetExport<T,TMetadataView>(String) GetExport<T,TMetadataView>(String) GetExport<T,TMetadataView>(String) GetExport<T,TMetadataView>(String)

傳回具有指定合約名稱的匯出。Returns the export with the specified contract name. 如果沒有任何項目完全符合匯出結果,則擲回例外狀況。If there is not exactly one matching export, an exception is thrown.

GetExport<T>() GetExport<T>() GetExport<T>() GetExport<T>()

傳回具有從指定型別參數中衍生之合約名稱的匯出。Returns the export with the contract name derived from the specified type parameter. 如果沒有任何項目完全符合匯出結果,則擲回例外狀況。If there is not exactly one matching export, an exception is thrown.

GetExport<T>(String) GetExport<T>(String) GetExport<T>(String) GetExport<T>(String)

傳回具有指定合約名稱的匯出。Returns the export with the specified contract name. 如果沒有任何項目完全符合匯出結果,則擲回例外狀況。If there is not exactly one matching export, an exception is thrown.

GetExportedValue<T>() GetExportedValue<T>() GetExportedValue<T>() GetExportedValue<T>()

傳回具有從指定型別參數中衍生之合約名稱的匯出物件。Returns the exported object with the contract name derived from the specified type parameter. 如果沒有一個完全相符的匯出物件,則會擲回例外狀況。If there is not exactly one matching exported object, an exception is thrown.

GetExportedValue<T>(String) GetExportedValue<T>(String) GetExportedValue<T>(String) GetExportedValue<T>(String)

傳回具有指定合約名稱的匯出物件。Returns the exported object with the specified contract name. 如果沒有一個完全相符的匯出物件,則會擲回例外狀況。If there is not exactly one matching exported object, an exception is thrown.

GetExportedValueOrDefault<T>() GetExportedValueOrDefault<T>() GetExportedValueOrDefault<T>() GetExportedValueOrDefault<T>()

取得具有從指定型別參數或指定型別的預設值衍生之合約名稱的匯出物件,或者如果有一個以上相符的匯出物件,則擲回例外狀況。Gets the exported object with the contract name derived from the specified type parameter or the default value for the specified type, or throws an exception if there is more than one matching exported object.

GetExportedValueOrDefault<T>(String) GetExportedValueOrDefault<T>(String) GetExportedValueOrDefault<T>(String) GetExportedValueOrDefault<T>(String)

取得具有指定合約名稱或指定型別預設值的匯出物件,或者如果有一個以上相符的匯出物件,則擲回例外狀況。Gets the exported object with the specified contract name or the default value for the specified type, or throws an exception if there is more than one matching exported object.

GetExportedValues<T>() GetExportedValues<T>() GetExportedValues<T>() GetExportedValues<T>()

取得具有從指定型別參數中衍生之合約名稱的匯出物件。Gets all the exported objects with the contract name derived from the specified type parameter.

GetExportedValues<T>(String) GetExportedValues<T>(String) GetExportedValues<T>(String) GetExportedValues<T>(String)

取得具有指定合約名稱的所有匯出物件。Gets all the exported objects with the specified contract name.

GetExports(ImportDefinition) GetExports(ImportDefinition) GetExports(ImportDefinition) GetExports(ImportDefinition)

取得符合指定之匯入定義條件的所有匯出。Gets all exports that match the conditions of the specified import definition.

GetExports(ImportDefinition, AtomicComposition) GetExports(ImportDefinition, AtomicComposition) GetExports(ImportDefinition, AtomicComposition) GetExports(ImportDefinition, AtomicComposition)

取得符合指定匯入定義和撰寫條件的所有匯出。Gets all exports that match the conditions of the specified import definition and composition.

GetExports(Type, Type, String) GetExports(Type, Type, String) GetExports(Type, Type, String) GetExports(Type, Type, String)

取得具有指定之合約名稱的所有匯出結果。Gets all the exports with the specified contract name.

GetExports<T,TMetadataView>() GetExports<T,TMetadataView>() GetExports<T,TMetadataView>() GetExports<T,TMetadataView>()

取得具有從指定型別參數衍生之合約名稱的所有匯出。Gets all the exports with the contract name derived from the specified type parameter.

GetExports<T,TMetadataView>(String) GetExports<T,TMetadataView>(String) GetExports<T,TMetadataView>(String) GetExports<T,TMetadataView>(String)

取得具有指定之合約名稱的所有匯出結果。Gets all the exports with the specified contract name.

GetExports<T>() GetExports<T>() GetExports<T>() GetExports<T>()

取得具有從指定型別參數衍生之合約名稱的所有匯出。Gets all the exports with the contract name derived from the specified type parameter.

GetExports<T>(String) GetExports<T>(String) GetExports<T>(String) GetExports<T>(String)

取得具有指定之合約名稱的所有匯出結果。Gets all the exports with the specified contract name.

GetExportsCore(ImportDefinition, AtomicComposition) GetExportsCore(ImportDefinition, AtomicComposition) GetExportsCore(ImportDefinition, AtomicComposition) GetExportsCore(ImportDefinition, AtomicComposition)

取得符合指定定義所定義限制的所有匯出。Gets all the exports that match the constraint defined by the specified definition.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
OnExportsChanged(ExportsChangeEventArgs) OnExportsChanged(ExportsChangeEventArgs) OnExportsChanged(ExportsChangeEventArgs) OnExportsChanged(ExportsChangeEventArgs)

引發 ExportsChanged 事件。Raises the ExportsChanged event.

OnExportsChanging(ExportsChangeEventArgs) OnExportsChanging(ExportsChangeEventArgs) OnExportsChanging(ExportsChangeEventArgs) OnExportsChanging(ExportsChangeEventArgs)

引發 ExportsChanging 事件。Raises the ExportsChanging event.

ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)
TryGetExports(ImportDefinition, AtomicComposition, IEnumerable<Export>) TryGetExports(ImportDefinition, AtomicComposition, IEnumerable<Export>) TryGetExports(ImportDefinition, AtomicComposition, IEnumerable<Export>) TryGetExports(ImportDefinition, AtomicComposition, IEnumerable<Export>)

取得符合指定之匯入條件的所有匯出。Gets all the exports that match the conditions of the specified import.

事件

ExportsChanged ExportsChanged ExportsChanged ExportsChanged

ExportProvider 中的匯出變更時發生。Occurs when the exports in the ExportProvider change.

ExportsChanging ExportsChanging ExportsChanging ExportsChanging

當提供的匯出變更時發生。Occurs when the provided exports are changing.

適用於