CustomAttributeNamedArgument Construtores

Definição

Inicializa uma nova instância da classe CustomAttributeNamedArgument.Initializes a new instance of the CustomAttributeNamedArgument class.

Sobrecargas

CustomAttributeNamedArgument(MemberInfo, Object)

Inicializa uma nova instância da classe CustomAttributeNamedArgument que representa o campo especificado ou a propriedade do atributo personalizado e especifica o valor do campo ou propriedade.Initializes a new instance of the CustomAttributeNamedArgument class, which represents the specified field or property of the custom attribute, and specifies the value of the field or property.

CustomAttributeNamedArgument(MemberInfo, CustomAttributeTypedArgument)

Inicializa uma nova instância da classe CustomAttributeNamedArgument que representa o campo especificado ou a propriedade do atributo personalizado e especifica o objeto CustomAttributeTypedArgument que descreve o tipo e o valor do campo ou propriedade.Initializes a new instance of the CustomAttributeNamedArgument class, which represents the specified field or property of the custom attribute, and specifies a CustomAttributeTypedArgument object that describes the type and value of the field or property.

CustomAttributeNamedArgument(MemberInfo, Object)

Inicializa uma nova instância da classe CustomAttributeNamedArgument que representa o campo especificado ou a propriedade do atributo personalizado e especifica o valor do campo ou propriedade.Initializes a new instance of the CustomAttributeNamedArgument class, which represents the specified field or property of the custom attribute, and specifies the value of the field or property.

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.A field or property of the custom attribute. O novo objeto CustomAttributeNamedArgument representa esse membro e seu valor.The new CustomAttributeNamedArgument object represents this member and its value.

value
Object

O valor do campo ou propriedade do atributo personalizado.The value of the field or property of the custom attribute.

Exceções

memberInfo é null.memberInfo is null.

memberInfo não é um campo ou propriedade do atributo personalizado.memberInfo is not a field or property of the custom attribute.

Comentários

Esse construtor é para uso por herdeiros da CustomAttributeNamedArgument classe.This constructor is for use by inheritors of the CustomAttributeNamedArgument class. Ele não se destina ao uso no código do aplicativo.It is not intended for use in application code.

Aplica-se a

CustomAttributeNamedArgument(MemberInfo, CustomAttributeTypedArgument)

Inicializa uma nova instância da classe CustomAttributeNamedArgument que representa o campo especificado ou a propriedade do atributo personalizado e especifica o objeto CustomAttributeTypedArgument que descreve o tipo e o valor do campo ou propriedade.Initializes a new instance of the CustomAttributeNamedArgument class, which represents the specified field or property of the custom attribute, and specifies a CustomAttributeTypedArgument object that describes the type and value of the field or property.

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.A field or property of the custom attribute. O novo objeto CustomAttributeNamedArgument representa esse membro e seu valor.The new CustomAttributeNamedArgument object represents this member and its value.

typedArgument
CustomAttributeTypedArgument

Um objeto que descreve o tipo e o valor do campo ou propriedade.An object that describes the type and value of the field or property.

Exceções

memberInfo é null.memberInfo is null.

Comentários

Esse construtor é para uso por herdeiros da CustomAttributeNamedArgument classe.This constructor is for use by inheritors of the CustomAttributeNamedArgument class. Ele não se destina ao uso no código do aplicativo.It is not intended for use in application code.

Aplica-se a