Редагувати

Поділитися через


CatalogExportProvider Class

Definition

Retrieves exports from a catalog.

public ref class CatalogExportProvider : System::ComponentModel::Composition::Hosting::ExportProvider, IDisposable
public class CatalogExportProvider : System.ComponentModel.Composition.Hosting.ExportProvider, IDisposable
type CatalogExportProvider = class
    inherit ExportProvider
    interface IDisposable
Public Class CatalogExportProvider
Inherits ExportProvider
Implements IDisposable
Inheritance
CatalogExportProvider
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

CatalogExportProvider(ComposablePartCatalog, Boolean)

Initializes a new instance of the CatalogExportProvider class with the specified catalog and optional thread-safe mode.

CatalogExportProvider(ComposablePartCatalog, CompositionOptions)

Initializes a new instance of the CatalogExportProvider class with the specified catalog and composition options.

CatalogExportProvider(ComposablePartCatalog)

Initializes a new instance of the CatalogExportProvider class with the specified catalog.

Properties

Catalog

Gets the catalog that is used to provide exports.

SourceProvider

Gets or sets the export provider that provides access to additional exports.

Methods

Dispose()

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

Dispose(Boolean)

Releases the unmanaged resources used by the CatalogExportProvider 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)

Returns all 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