PartBuilder.ExportInterfaces Method

Definition

Specifies a set of interfaces that should be exported on the matching types.

Overloads

ExportInterfaces()

Specifies that all the interfaces of the matching types should be exported.

ExportInterfaces(Predicate<Type>)

Specifies a set of interfaces on the matching types that should be exported.

ExportInterfaces(Predicate<Type>, Action<Type,ExportBuilder>)

Specifies a set of interfaces on the matching types that should be exported, and provides configuration information for the resulting exports.

ExportInterfaces()

Source:
PartBuilder.cs
Source:
PartBuilder.cs
Source:
PartBuilder.cs
Source:
PartBuilder.cs

Specifies that all the interfaces of the matching types should be exported.

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

Returns

The current object, to allow chaining.

Applies to

ExportInterfaces(Predicate<Type>)

Source:
PartBuilder.cs
Source:
PartBuilder.cs
Source:
PartBuilder.cs
Source:
PartBuilder.cs

Specifies a set of interfaces on the matching types that should be exported.

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

Parameters

interfaceFilter
Predicate<Type>

A predicate that specifies a set of interfaces.

Returns

The current object, to allow chaining.

Exceptions

interfaceFilter is null.

Remarks

This method will not export IDisposable or IPartImportsSatisfiedNotification objects.

Applies to

ExportInterfaces(Predicate<Type>, Action<Type,ExportBuilder>)

Source:
PartBuilder.cs
Source:
PartBuilder.cs
Source:
PartBuilder.cs
Source:
PartBuilder.cs

Specifies a set of interfaces on the matching types that should be exported, and provides configuration information for the resulting exports.

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

Parameters

interfaceFilter
Predicate<Type>

A predicate that specifies a set of interfaces.

exportConfiguration
Action<Type,ExportBuilder>

An object that contains configuration information about the export. The default value is null.

Returns

The current object, to allow chaining.

Exceptions

interfaceFilter is null.

Remarks

This method will not export IDisposable or IPartImportsSatisfiedNotification objects.

Applies to