ExportProvider.GetExportsCore(ImportDefinition, AtomicComposition) Method

Definition

Gets all the exports that match the constraint defined by the specified definition.

protected:
 abstract System::Collections::Generic::IEnumerable<System::ComponentModel::Composition::Primitives::Export ^> ^ GetExportsCore(System::ComponentModel::Composition::Primitives::ImportDefinition ^ definition, System::ComponentModel::Composition::Hosting::AtomicComposition ^ atomicComposition);
protected abstract System.Collections.Generic.IEnumerable<System.ComponentModel.Composition.Primitives.Export> GetExportsCore (System.ComponentModel.Composition.Primitives.ImportDefinition definition, System.ComponentModel.Composition.Hosting.AtomicComposition atomicComposition);
protected abstract System.Collections.Generic.IEnumerable<System.ComponentModel.Composition.Primitives.Export>? GetExportsCore (System.ComponentModel.Composition.Primitives.ImportDefinition definition, System.ComponentModel.Composition.Hosting.AtomicComposition? atomicComposition);
abstract member GetExportsCore : System.ComponentModel.Composition.Primitives.ImportDefinition * System.ComponentModel.Composition.Hosting.AtomicComposition -> seq<System.ComponentModel.Composition.Primitives.Export>
Protected MustOverride Function GetExportsCore (definition As ImportDefinition, atomicComposition As AtomicComposition) As IEnumerable(Of Export)

Parameters

definition
ImportDefinition

The object that defines the conditions of the Export objects to return.

atomicComposition
AtomicComposition

The transactional container for the composition.

Returns

A collection that contains all the exports that match the specified condition.

Remarks

Overrides of this method should not treat cardinality-related mismatches as errors, and should not throw exceptions in those cases. For example, if Cardinality is ExactlyOne and there are zero Export objects that match the conditions of the specified ImportDefinition, an empty IEnumerable<T> collection should be returned.

Applies to