PartBuilder.ExportInterfaces Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies a set of interfaces that should be exported on the matching types.
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. |
- 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
.NET 10 (package-provided) and other versions
Product | Versions |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Framework | 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.1 (package-provided) |
- 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
Returns
The current object, to allow chaining.
Exceptions
interfaceFilter
is null
.
Remarks
This method will not export IDisposable or IPartImportsSatisfiedNotification objects.
Applies to
.NET 10 (package-provided) and other versions
Product | Versions |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Framework | 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.1 (package-provided) |
- 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
- 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
.NET 10 (package-provided) and other versions
Product | Versions |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Framework | 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.1 (package-provided) |
.NET feedback
.NET is an open source project. Select a link to provide feedback: