ImportManyAttribute Classe

Definição

Especifica que uma propriedade, campo ou parâmetro deve ser preenchido com todas as exportações correspondentes, pelo objeto CompositionContainer.Specifies that a property, field, or parameter should be populated with all matching exports by the CompositionContainer object.

public ref class ImportManyAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Parameter | System.AttributeTargets.Property, AllowMultiple=false, Inherited=false)]
public class ImportManyAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Parameter | System.AttributeTargets.Property, AllowMultiple=false, Inherited=false)>]
type ImportManyAttribute = class
    inherit Attribute
Public Class ImportManyAttribute
Inherits Attribute
Herança
ImportManyAttribute
Atributos

Construtores

ImportManyAttribute()

Inicializa uma nova instância da classe ImportManyAttribute importando o conjunto de exportações com o nome do contrato padrão.Initializes a new instance of the ImportManyAttribute class, importing the set of exports with the default contract name.

ImportManyAttribute(String)

Inicializa uma nova instância da classe ImportManyAttribute importando o conjunto de exportações com o nome do contrato especificado.Initializes a new instance of the ImportManyAttribute class, importing the set of exports with the specified contract name.

ImportManyAttribute(String, Type)

Inicializa uma nova instância da classe ImportManyAttribute, importando o conjunto de exportações com o nome de contrato e o tipo de contrato especificados.Initializes a new instance of the ImportManyAttribute class, importing the set of exports with the specified contract name and contract type.

ImportManyAttribute(Type)

Inicializa uma nova instância da classe ImportManyAttribute importando o conjunto de exportação com o nome do contrato derivado do tipo especificado.Initializes a new instance of the ImportManyAttribute class, importing the set of exports with the contract name derived from the specified type.

Propriedades

AllowRecomposition

Obtém ou define um valor que indica se o campo ou a propriedade decorada será recomposto quando exportações que fornecem o contrato correspondente mudarem.Gets or sets a value indicating whether the decorated property or field will be recomposed when exports that provide the matching contract change.

ContractName

Obtém o nome do contrato das exportações para importar.Gets the contract name of the exports to import.

ContractType

Obtém o tipo do contrato da exportação a importar.Gets the contract type of the export to import.

RequiredCreationPolicy

Obtém ou define um valor que indica que o importador exige uma CreationPolicy específica para as exportações usadas para atender a essa importação.Gets or sets a value that indicates that the importer requires a specific CreationPolicy for the exports used to satisfy this import.

Source

Obtém ou define um valor que especifica os escopos dos quais essa importação pode ser atendida.Gets or sets a value that specifies the scopes from which this import may be satisfied.

TypeId

Quando implementado em uma classe derivada, obtém um identificador exclusivo para este Attribute.When implemented in a derived class, gets a unique identifier for this Attribute.

(Herdado de Attribute)

Métodos

Equals(Object)

Retorna um valor que indica se essa instância é igual a um objeto especificado.Returns a value that indicates whether this instance is equal to a specified object.

(Herdado de Attribute)
GetHashCode()

Retorna o código hash para a instância.Returns the hash code for this instance.

(Herdado de Attribute)
GetType()

Obtém o Type da instância atual.Gets the Type of the current instance.

(Herdado de Object)
IsDefaultAttribute()

Quando substituído em uma classe derivada, indica se o valor dessa instância é o valor padrão para a classe derivada.When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.

(Herdado de Attribute)
Match(Object)

Quando substituído em uma classe derivada, retorna um valor que indica se essa instância é igual a um objeto especificado.When overridden in a derived class, returns a value that indicates whether this instance equals a specified object.

(Herdado de Attribute)
MemberwiseClone()

Cria uma cópia superficial do Object atual.Creates a shallow copy of the current Object.

(Herdado de Object)
ToString()

Retorna uma cadeia de caracteres que representa o objeto atual.Returns a string that represents the current object.

(Herdado de Object)

Implantações explícitas de interface

_Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)

Mapeia um conjunto de nomes para um conjunto correspondente de identificadores de expedição.Maps a set of names to a corresponding set of dispatch identifiers.

(Herdado de Attribute)
_Attribute.GetTypeInfo(UInt32, UInt32, IntPtr)

Recupera as informações de tipo para um objeto, que pode ser usado para obter as informações de tipo para uma interface.Retrieves the type information for an object, which can be used to get the type information for an interface.

(Herdado de Attribute)
_Attribute.GetTypeInfoCount(UInt32)

Retorna o número de interfaces de informações do tipo que um objeto fornece (0 ou 1).Retrieves the number of type information interfaces that an object provides (either 0 or 1).

(Herdado de Attribute)
_Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)

Fornece acesso a propriedades e métodos expostos por um objeto.Provides access to properties and methods exposed by an object.

(Herdado de Attribute)

Aplica-se a