Bewerken

Share via


AggregateExportProvider Class

Definition

Retrieves exports provided by a collection of ExportProvider objects.

public ref class AggregateExportProvider : System::ComponentModel::Composition::Hosting::ExportProvider, IDisposable
public class AggregateExportProvider : System.ComponentModel.Composition.Hosting.ExportProvider, IDisposable
type AggregateExportProvider = class
    inherit ExportProvider
    interface IDisposable
Public Class AggregateExportProvider
Inherits ExportProvider
Implements IDisposable
Inheritance
AggregateExportProvider
Implements

Remarks

Important

This type implements the IDisposable interface. When you have finished using the type, you should dispose of it either directly or indirectly. To dispose of the type directly, call its Dispose method in a try/catch block. To dispose of it indirectly, use a language construct such as using (in C#) or Using (in Visual Basic). For more information, see the "Using an Object that Implements IDisposable" section in the IDisposable interface topic.

Constructors

AggregateExportProvider(ExportProvider[])

Initializes a new instance of the AggregateExportProvider class.

AggregateExportProvider(IEnumerable<ExportProvider>)

Initializes a new instance of the AggregateExportProvider class.

Properties

Providers

Gets a collection that contains the providers that the AggregateExportProvider object aggregates.

Methods

Dispose()

Releases all resources used by the current instance of the AggregateExportProvider class.

Dispose(Boolean)

Releases the unmanaged resources used by the AggregateExportProvider class and optionally releases the managed resources.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetExport<T,TMetadataView>()

Returns the export with the contract name derived from the specified type parameter. If there is not exactly one matching export, an exception is thrown.

(Inherited from ExportProvider)
GetExport<T,TMetadataView>(String)

Returns the export with the specified contract name. If there is not exactly one matching export, an exception is thrown.

(Inherited from ExportProvider)
GetExport<T>()

Returns the export with the contract name derived from the specified type parameter. If there is not exactly one matching export, an exception is thrown.

(Inherited from ExportProvider)
GetExport<T>(String)

Returns the export with the specified contract name. If there is not exactly one matching export, an exception is thrown.

(Inherited from ExportProvider)
GetExportedValue<T>()

Returns the exported object with the contract name derived from the specified type parameter. If there is not exactly one matching exported object, an exception is thrown.

(Inherited from ExportProvider)
GetExportedValue<T>(String)

Returns the exported object with the specified contract name. If there is not exactly one matching exported object, an exception is thrown.

(Inherited from ExportProvider)
GetExportedValueOrDefault<T>()

Gets the exported object with the contract name derived from the specified type parameter or the default value for the specified type, or throws an exception if there is more than one matching exported object.

(Inherited from ExportProvider)
GetExportedValueOrDefault<T>(String)

Gets the exported object with the specified contract name or the default value for the specified type, or throws an exception if there is more than one matching exported object.

(Inherited from ExportProvider)
GetExportedValues<T>()

Gets all the exported objects with the contract name derived from the specified type parameter.

(Inherited from ExportProvider)
GetExportedValues<T>(String)

Gets all the exported objects with the specified contract name.

(Inherited from ExportProvider)
GetExports(ImportDefinition, AtomicComposition)

Gets all exports that match the conditions of the specified import definition and composition.

(Inherited from ExportProvider)
GetExports(ImportDefinition)

Gets all exports that match the conditions of the specified import definition.

(Inherited from ExportProvider)
GetExports(Type, Type, String)

Gets all the exports with the specified contract name.

(Inherited from ExportProvider)
GetExports<T,TMetadataView>()

Gets all the exports with the contract name derived from the specified type parameter.

(Inherited from ExportProvider)
GetExports<T,TMetadataView>(String)

Gets all the exports with the specified contract name.

(Inherited from ExportProvider)
GetExports<T>()

Gets all the exports with the contract name derived from the specified type parameter.

(Inherited from ExportProvider)
GetExports<T>(String)

Gets all the exports with the specified contract name.

(Inherited from ExportProvider)
GetExportsCore(ImportDefinition, AtomicComposition)

Gets all the exports that match the conditions of the specified import.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
OnExportsChanged(ExportsChangeEventArgs)

Raises the ExportsChanged event.

(Inherited from ExportProvider)
OnExportsChanging(ExportsChangeEventArgs)

Raises the ExportsChanging event.

(Inherited from ExportProvider)
ToString()

Returns a string that represents the current object.

(Inherited from Object)
TryGetExports(ImportDefinition, AtomicComposition, IEnumerable<Export>)

Gets all the exports that match the conditions of the specified import.

(Inherited from ExportProvider)

Events

ExportsChanged

Occurs when the exports in the ExportProvider change.

(Inherited from ExportProvider)
ExportsChanging

Occurs when the provided exports are changing.

(Inherited from ExportProvider)

Applies to