CompositionContext.GetExports Método

Definición

Sobrecargas

Nombre Description
GetExports(Type)

Recupera una colección de todas las exportaciones que coinciden con el tipo especificado.

GetExports(Type, String)

Recupera todas las exportaciones que coinciden con el nombre y el tipo de contrato especificados.

GetExports<TExport>()

Recupera todas las exportaciones que coinciden con el parámetro de tipo genérico especificado.

GetExports<TExport>(String)

Recupera todas las exportaciones que coinciden con el parámetro de tipo genérico y el nombre del contrato especificados.

GetExports(Type)

Source:
CompositionContext.cs
Source:
CompositionContext.cs
Source:
CompositionContext.cs
Source:
CompositionContext.cs

Recupera una colección de todas las exportaciones que coinciden con el tipo especificado.

public:
 System::Collections::Generic::IEnumerable<System::Object ^> ^ GetExports(Type ^ exportType);
public System.Collections.Generic.IEnumerable<object> GetExports(Type exportType);
member this.GetExports : Type -> seq<obj>
Public Function GetExports (exportType As Type) As IEnumerable(Of Object)

Parámetros

exportType
Type

Tipo que se va a coincidir.

Devoluciones

Colección de valores exportados.

Excepciones

No se encontró ninguna exportación para exportType.

Se aplica a

GetExports(Type, String)

Source:
CompositionContext.cs
Source:
CompositionContext.cs
Source:
CompositionContext.cs
Source:
CompositionContext.cs

Recupera todas las exportaciones que coinciden con el nombre y el tipo de contrato especificados.

public:
 System::Collections::Generic::IEnumerable<System::Object ^> ^ GetExports(Type ^ exportType, System::String ^ contractName);
public System.Collections.Generic.IEnumerable<object> GetExports(Type exportType, string contractName);
member this.GetExports : Type * string -> seq<obj>
Public Function GetExports (exportType As Type, contractName As String) As IEnumerable(Of Object)

Parámetros

exportType
Type

Tipo que se va a coincidir.

contractName
String

Nombre que se va a buscar.

Devoluciones

Colección de valores exportados.

Excepciones

No se encontró ninguna exportación para exportType.

Se aplica a

GetExports<TExport>()

Source:
CompositionContext.cs
Source:
CompositionContext.cs
Source:
CompositionContext.cs
Source:
CompositionContext.cs

Recupera todas las exportaciones que coinciden con el parámetro de tipo genérico especificado.

public:
generic <typename TExport>
 System::Collections::Generic::IEnumerable<TExport> ^ GetExports();
public System.Collections.Generic.IEnumerable<TExport> GetExports<TExport>();
member this.GetExports : unit -> seq<'Export>
Public Function GetExports(Of TExport) () As IEnumerable(Of TExport)

Parámetros de tipo

TExport

Tipo que se va a coincidir.

Devoluciones

IEnumerable<TExport>

Colección de valores exportados.

Excepciones

No se encontró ninguna exportación para TExport.

Se aplica a

GetExports<TExport>(String)

Source:
CompositionContext.cs
Source:
CompositionContext.cs
Source:
CompositionContext.cs
Source:
CompositionContext.cs

Recupera todas las exportaciones que coinciden con el parámetro de tipo genérico y el nombre del contrato especificados.

public:
generic <typename TExport>
 System::Collections::Generic::IEnumerable<TExport> ^ GetExports(System::String ^ contractName);
public System.Collections.Generic.IEnumerable<TExport> GetExports<TExport>(string contractName);
member this.GetExports : string -> seq<'Export>
Public Function GetExports(Of TExport) (contractName As String) As IEnumerable(Of TExport)

Parámetros de tipo

TExport

Tipo que se va a coincidir.

Parámetros

contractName
String

Nombre que se va a buscar.

Devoluciones

IEnumerable<TExport>

Colección de valores exportados.

Excepciones

No se encontraron exportaciones para TExport y contractName.

Se aplica a