PartBuilder.ExportInterfaces 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在匹配类型上指定一组应导出的接口。
重载
ExportInterfaces() |
指定所有应导出的匹配类型的接口。 |
ExportInterfaces(Predicate<Type>) |
在应导出的匹配类型指定一组接口。 |
ExportInterfaces(Predicate<Type>, Action<Type,ExportBuilder>) |
在应导出的匹配类型指定一组接口,并为结果导出提供配置信息。 |
ExportInterfaces()
- Source:
- PartBuilder.cs
- Source:
- PartBuilder.cs
- Source:
- PartBuilder.cs
指定所有应导出的匹配类型的接口。
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>)
- Source:
- PartBuilder.cs
- Source:
- PartBuilder.cs
- Source:
- PartBuilder.cs
在应导出的匹配类型指定一组接口。
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>)
- Source:
- PartBuilder.cs
- Source:
- PartBuilder.cs
- Source:
- PartBuilder.cs
在应导出的匹配类型指定一组接口,并为结果导出提供配置信息。
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 对象。