Редагувати

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


ComposablePartExportProvider Class

Definition

Retrieves exports from a part.

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

ComposablePartExportProvider()

Initializes a new instance of the ComposablePartExportProvider class.

ComposablePartExportProvider(Boolean)

Initializes a new instance of the ComposablePartExportProvider class, optionally in thread-safe mode.

ComposablePartExportProvider(CompositionOptions)

Initializes a new instance of the ComposablePartExportProvider class with the specified composition options.

Properties

SourceProvider

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

Methods

Compose(CompositionBatch)

Executes composition on the specified batch.

Dispose()

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

Dispose(Boolean)

Releases the unmanaged resources used by the ComposablePartExportProvider 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 a collection of all exports in this provider 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