CustomAttributeNamedArgument Konstruktory

Definice

Inicializuje novou instanci CustomAttributeNamedArgument třídy .

Přetížení

CustomAttributeNamedArgument(MemberInfo, Object)

Inicializuje novou instanci CustomAttributeNamedArgument třídy, která představuje zadané pole nebo vlastnost vlastního atributu a určuje hodnotu pole nebo vlastnosti.

CustomAttributeNamedArgument(MemberInfo, CustomAttributeTypedArgument)

Inicializuje novou instanci CustomAttributeNamedArgument třídy, která představuje zadané pole nebo vlastnost vlastního atributu a určuje CustomAttributeTypedArgument objekt, který popisuje typ a hodnotu pole nebo vlastnosti.

CustomAttributeNamedArgument(MemberInfo, Object)

Zdroj:
CustomAttributeNamedArgument.cs
Zdroj:
CustomAttributeNamedArgument.cs
Zdroj:
CustomAttributeNamedArgument.cs

Inicializuje novou instanci CustomAttributeNamedArgument třídy, která představuje zadané pole nebo vlastnost vlastního atributu a určuje hodnotu pole nebo vlastnosti.

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)

Parametry

memberInfo
MemberInfo

Pole nebo vlastnost vlastního atributu. Nový CustomAttributeNamedArgument objekt představuje tohoto člena a jeho hodnotu.

value
Object

Hodnota pole nebo vlastnosti vlastního atributu.

Výjimky

memberInfo je null.

memberInfo není pole ani vlastnost vlastního atributu.

Poznámky

Tento konstruktor je určen pro dědiče CustomAttributeNamedArgument třídy . Není určen pro použití v kódu aplikace.

Platí pro

CustomAttributeNamedArgument(MemberInfo, CustomAttributeTypedArgument)

Zdroj:
CustomAttributeNamedArgument.cs
Zdroj:
CustomAttributeNamedArgument.cs
Zdroj:
CustomAttributeNamedArgument.cs

Inicializuje novou instanci CustomAttributeNamedArgument třídy, která představuje zadané pole nebo vlastnost vlastního atributu a určuje CustomAttributeTypedArgument objekt, který popisuje typ a hodnotu pole nebo vlastnosti.

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)

Parametry

memberInfo
MemberInfo

Pole nebo vlastnost vlastního atributu. Nový CustomAttributeNamedArgument objekt představuje tohoto člena a jeho hodnotu.

typedArgument
CustomAttributeTypedArgument

Objekt, který popisuje typ a hodnotu pole nebo vlastnosti.

Výjimky

memberInfo je null.

Poznámky

Tento konstruktor je určen pro dědiče CustomAttributeNamedArgument třídy . Není určen pro použití v kódu aplikace.

Platí pro