CustomAttributeNamedArgument Construtores

Definição

Inicializa uma nova instância da CustomAttributeNamedArgument classe.

Sobrecargas

Name Description
CustomAttributeNamedArgument(MemberInfo, Object)

Inicializa uma nova instância da CustomAttributeNamedArgument classe, que representa o campo ou propriedade especificado do atributo personalizado, e especifica o valor do campo ou propriedade.

CustomAttributeNamedArgument(MemberInfo, CustomAttributeTypedArgument)

Inicializa uma nova instância da CustomAttributeNamedArgument classe, que representa o campo ou propriedade especificado do atributo personalizado, e especifica um CustomAttributeTypedArgument objeto que descreve o tipo e valor do campo ou propriedade.

CustomAttributeNamedArgument(MemberInfo, Object)

Origem:
CustomAttributeNamedArgument.cs
Origem:
CustomAttributeNamedArgument.cs
Origem:
CustomAttributeNamedArgument.cs
Origem:
CustomAttributeNamedArgument.cs
Origem:
CustomAttributeNamedArgument.cs

Inicializa uma nova instância da CustomAttributeNamedArgument classe, que representa o campo ou propriedade especificado do atributo personalizado, e especifica o valor do campo ou propriedade.

public:
 CustomAttributeNamedArgument(System::Reflection::MemberInfo ^ memberInfo, System::Object ^ value);
public CustomAttributeNamedArgument(System.Reflection.MemberInfo memberInfo, object? value);
public CustomAttributeNamedArgument(System.Reflection.MemberInfo memberInfo, object value);
new System.Reflection.CustomAttributeNamedArgument : System.Reflection.MemberInfo * obj -> System.Reflection.CustomAttributeNamedArgument
Public Sub New (memberInfo As MemberInfo, value As Object)

Parâmetros

memberInfo
MemberInfo

Um campo ou propriedade do atributo personalizado. O novo CustomAttributeNamedArgument objeto representa este elemento e o seu valor.

value
Object

O valor do campo ou propriedade do atributo personalizado.

Exceções

memberInfo é null.

memberInfo não é um campo ou propriedade do atributo personalizado.

Observações

Este construtor é para uso por herdeiros da CustomAttributeNamedArgument classe. Não é destinado a ser utilizado em código de aplicação.

Aplica-se a

CustomAttributeNamedArgument(MemberInfo, CustomAttributeTypedArgument)

Origem:
CustomAttributeNamedArgument.cs
Origem:
CustomAttributeNamedArgument.cs
Origem:
CustomAttributeNamedArgument.cs
Origem:
CustomAttributeNamedArgument.cs
Origem:
CustomAttributeNamedArgument.cs

Inicializa uma nova instância da CustomAttributeNamedArgument classe, que representa o campo ou propriedade especificado do atributo personalizado, e especifica um CustomAttributeTypedArgument objeto que descreve o tipo e valor do campo ou propriedade.

public:
 CustomAttributeNamedArgument(System::Reflection::MemberInfo ^ memberInfo, System::Reflection::CustomAttributeTypedArgument typedArgument);
public CustomAttributeNamedArgument(System.Reflection.MemberInfo memberInfo, System.Reflection.CustomAttributeTypedArgument typedArgument);
new System.Reflection.CustomAttributeNamedArgument : System.Reflection.MemberInfo * System.Reflection.CustomAttributeTypedArgument -> System.Reflection.CustomAttributeNamedArgument
Public Sub New (memberInfo As MemberInfo, typedArgument As CustomAttributeTypedArgument)

Parâmetros

memberInfo
MemberInfo

Um campo ou propriedade do atributo personalizado. O novo CustomAttributeNamedArgument objeto representa este elemento e o seu valor.

typedArgument
CustomAttributeTypedArgument

Um objeto que descreve o tipo e valor do campo ou propriedade.

Exceções

memberInfo é null.

Observações

Este construtor é para uso por herdeiros da CustomAttributeNamedArgument classe. Não é destinado a ser utilizado em código de aplicação.

Aplica-se a