Lire en anglais Modifier

Partager via


AggregateExportProvider Constructors

Definition

Initializes a new instance of the AggregateExportProvider class.

Overloads

AggregateExportProvider(IEnumerable<ExportProvider>)

Source:
AggregateExportProvider.cs
Source:
AggregateExportProvider.cs
Source:
AggregateExportProvider.cs

Initializes a new instance of the AggregateExportProvider class.

public AggregateExportProvider (System.Collections.Generic.IEnumerable<System.ComponentModel.Composition.Hosting.ExportProvider>? providers);
public AggregateExportProvider (System.Collections.Generic.IEnumerable<System.ComponentModel.Composition.Hosting.ExportProvider> providers);

Parameters

providers
IEnumerable<ExportProvider>

The prioritized list of export providers. The providers are consulted in the order in which they are supplied.

Exceptions

One or more elements of providers are null.

Remarks

The AggregateExportProvider class consults the providers in the order in which they have been specified when it calls GetExports.

The AggregateExportProvider does not take ownership of the specified providers. That is, it tries to dispose of any of the providers when it is disposed.

Applies to

.NET 9 (package-provided) et autres versions
Produit Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

AggregateExportProvider(ExportProvider[])

Source:
AggregateExportProvider.cs
Source:
AggregateExportProvider.cs
Source:
AggregateExportProvider.cs

Initializes a new instance of the AggregateExportProvider class.

public AggregateExportProvider (params System.ComponentModel.Composition.Hosting.ExportProvider[]? providers);
public AggregateExportProvider (params System.ComponentModel.Composition.Hosting.ExportProvider[] providers);

Parameters

providers
ExportProvider[]

The prioritized list of export providers.

Exceptions

providers contains an element that is null.

Remarks

The AggregateExportProvider class consults the providers in the order in which they have been specified when it calls GetExports.

The AggregateExportProvider does not take ownership of the specified providers. That is, it tries to dispose of any of the providers when it is disposed.

Applies to

.NET 9 (package-provided) et autres versions
Produit Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)