PartBuilder.ExportInterfaces 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
指定一組介面,應匯出於匹配型別。
多載
| 名稱 | Description |
|---|---|
| ExportInterfaces() |
規定所有匹配類型的介面都應該匯出。 |
| ExportInterfaces(Predicate<Type>) |
指定一組應匯出的介面類型。 |
| ExportInterfaces(Predicate<Type>, Action<Type,ExportBuilder>) |
指定一組應匯出的匹配介面,並提供匯出後的設定資訊。 |
ExportInterfaces()
規定所有匹配類型的介面都應該匯出。
public:
System::ComponentModel::Composition::Registration::PartBuilder ^ ExportInterfaces();
public System.ComponentModel.Composition.Registration.PartBuilder ExportInterfaces();
member this.ExportInterfaces : unit -> System.ComponentModel.Composition.Registration.PartBuilder
Public Function ExportInterfaces () As PartBuilder
傳回
目前的物件,允許連鎖。
適用於
ExportInterfaces(Predicate<Type>)
指定一組應匯出的介面類型。
public:
System::ComponentModel::Composition::Registration::PartBuilder ^ ExportInterfaces(Predicate<Type ^> ^ interfaceFilter);
public System.ComponentModel.Composition.Registration.PartBuilder ExportInterfaces(Predicate<Type> interfaceFilter);
member this.ExportInterfaces : Predicate<Type> -> System.ComponentModel.Composition.Registration.PartBuilder
Public Function ExportInterfaces (interfaceFilter As Predicate(Of Type)) As PartBuilder
參數
傳回
目前的物件,允許連鎖。
例外狀況
interfaceFilter 是 null。
備註
此方法無法匯出IDisposable物件。IPartImportsSatisfiedNotification
適用於
ExportInterfaces(Predicate<Type>, Action<Type,ExportBuilder>)
指定一組應匯出的匹配介面,並提供匯出後的設定資訊。
public:
System::ComponentModel::Composition::Registration::PartBuilder ^ ExportInterfaces(Predicate<Type ^> ^ interfaceFilter, Action<Type ^, System::ComponentModel::Composition::Registration::ExportBuilder ^> ^ exportConfiguration);
public System.ComponentModel.Composition.Registration.PartBuilder ExportInterfaces(Predicate<Type> interfaceFilter, Action<Type,System.ComponentModel.Composition.Registration.ExportBuilder> exportConfiguration);
member this.ExportInterfaces : Predicate<Type> * Action<Type, System.ComponentModel.Composition.Registration.ExportBuilder> -> System.ComponentModel.Composition.Registration.PartBuilder
Public Function ExportInterfaces (interfaceFilter As Predicate(Of Type), exportConfiguration As Action(Of Type, ExportBuilder)) As PartBuilder
參數
- exportConfiguration
- Action<Type,ExportBuilder>
一個包含匯出設定資訊的物件。 預設值為 null。
傳回
目前的物件,允許連鎖。
例外狀況
interfaceFilter 是 null。
備註
此方法無法匯出IDisposable物件。IPartImportsSatisfiedNotification