CustomAttributeNamedArgument Constructores

Definición

Inicializa una nueva instancia de la clase CustomAttributeNamedArgument.

Sobrecargas

CustomAttributeNamedArgument(MemberInfo, Object)

Inicializa una nueva instancia de la clase CustomAttributeNamedArgument, que representa la propiedad o el campo especificado del atributo personalizado, y especifica el valor del campo o la propiedad.

CustomAttributeNamedArgument(MemberInfo, CustomAttributeTypedArgument)

Inicializa una nueva instancia de la clase CustomAttributeNamedArgument, que representa la propiedad o el campo especificado del atributo personalizado, y especifica un objeto CustomAttributeTypedArgument que describe el tipo y el valor del campo o de la propiedad.

CustomAttributeNamedArgument(MemberInfo, Object)

Source:
CustomAttributeNamedArgument.cs
Source:
CustomAttributeNamedArgument.cs
Source:
CustomAttributeNamedArgument.cs

Inicializa una nueva instancia de la clase CustomAttributeNamedArgument, que representa la propiedad o el campo especificado del atributo personalizado, y especifica el valor del campo o la propiedad.

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

Campo o propiedad del atributo personalizado. El nuevo objeto CustomAttributeNamedArgument representa este miembro y su valor.

value
Object

Valor del campo o de la propiedad del atributo personalizado.

Excepciones

memberInfo es null.

memberInfo no es un campo o propiedad del atributo personalizado.

Comentarios

Este constructor lo usan los heredadores de la CustomAttributeNamedArgument clase . No está diseñado para su uso en el código de aplicación.

Se aplica a

CustomAttributeNamedArgument(MemberInfo, CustomAttributeTypedArgument)

Source:
CustomAttributeNamedArgument.cs
Source:
CustomAttributeNamedArgument.cs
Source:
CustomAttributeNamedArgument.cs

Inicializa una nueva instancia de la clase CustomAttributeNamedArgument, que representa la propiedad o el campo especificado del atributo personalizado, y especifica un objeto CustomAttributeTypedArgument que describe el tipo y el valor del campo o de la propiedad.

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

Campo o propiedad del atributo personalizado. El nuevo objeto CustomAttributeNamedArgument representa este miembro y su valor.

typedArgument
CustomAttributeTypedArgument

Objeto que describe el tipo y el valor del campo o la propiedad.

Excepciones

memberInfo es null.

Comentarios

Este constructor lo usan los heredadores de la CustomAttributeNamedArgument clase . No está diseñado para su uso en el código de aplicación.

Se aplica a