AggregateExportProvider.GetExportsCore Metoda

Definice

Získá všechny exporty, které odpovídají podmínkám zadaného importu.

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

Parametry

definition
ImportDefinition

Podmínky Export objektů, které mají být vráceny.

atomicComposition
AtomicComposition

Transakční kontejner pro složení.

Návraty

Kolekce obsahující všechny exporty, které odpovídají zadané podmínce.

Poznámky

Implementátoři by neměli zacházet s neshodami souvisejícími s kardinalitou jako s chybami a neočekává se, že v těchto případech dojde k výjimkám.

Pokud například import požaduje přesně jeden export a poskytovatel nemá buď žádné odpovídající exporty, nebo více než jeden, metoda by měla vrátit prázdnou IEnumerable<T> kolekci Export.

Platí pro