CompositionContext.GetExports Método

Definição

Sobrecargas

GetExports(Type)

Recupera uma coleção de todas as exportações que correspondem ao tipo especificado.Retrieves a collection of all exports that match the specified type.

GetExports(Type, String)

Recupera todas as exportações que correspondem ao nome do contrato e ao tipo especificados.Retrieves all exports that match the specified contract name and type.

GetExports<TExport>()

Recupera todas as exportações que correspondem ao parâmetro de tipo genérico especificado.Retrieves all exports that match the specified generic type parameter.

GetExports<TExport>(String)

Recupera todas as exportações que correspondem ao parâmetro de tipo genérico e ao nome do contrato especificados.Retrieves all exports that match the specified generic type parameter and contract name.

GetExports(Type)

Recupera uma coleção de todas as exportações que correspondem ao tipo especificado.Retrieves a collection of all exports that match the specified type.

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

O tipo a ser comparado.The type to match.

Retornos

IEnumerable<Object>

Uma coleção de valores exportados.A collection of exported values.

Exceções

Não foram encontradas exportações para exportType.No exports were found for exportType.

Aplica-se a

GetExports(Type, String)

Recupera todas as exportações que correspondem ao nome do contrato e ao tipo especificados.Retrieves all exports that match the specified contract name and type.

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

O tipo a ser comparado.The type to match.

contractName
String

O nome a ser comparado.The name to match.

Retornos

IEnumerable<Object>

Uma coleção de valores exportados.A collection of exported values.

Exceções

Não foram encontradas exportações para exportType.No exports were found for exportType.

Aplica-se a

GetExports<TExport>()

Recupera todas as exportações que correspondem ao parâmetro de tipo genérico especificado.Retrieves all exports that match the specified generic type parameter.

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

O tipo a ser comparado.The type to match.

Retornos

IEnumerable<TExport>

Uma coleção de valores exportados.A collection of exported values.

Exceções

Não foram encontradas exportações para TExport.No exports were found for TExport.

Aplica-se a

GetExports<TExport>(String)

Recupera todas as exportações que correspondem ao parâmetro de tipo genérico e ao nome do contrato especificados.Retrieves all exports that match the specified generic type parameter and contract name.

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

O tipo a ser comparado.The type to match.

Parâmetros

contractName
String

O nome a ser comparado.The name to match.

Retornos

IEnumerable<TExport>

Uma coleção de valores exportados.A collection of exported values.

Exceções

Não foram encontradas exportações para TExport e contractName.No exports were found for TExport and contractName.

Aplica-se a