Share via


CustomAttributeTypedArgument Konstruktory

Definice

Inicializuje novou instanci CustomAttributeTypedArgument třídy .

Přetížení

CustomAttributeTypedArgument(Object)

Inicializuje novou instanci CustomAttributeTypedArgument třídy se zadanou hodnotou.

CustomAttributeTypedArgument(Type, Object)

Inicializuje novou instanci CustomAttributeTypedArgument třídy se zadaným typem a hodnotou.

CustomAttributeTypedArgument(Object)

Zdroj:
CustomAttributeTypedArgument.cs
Zdroj:
CustomAttributeTypedArgument.cs
Zdroj:
CustomAttributeTypedArgument.cs

Inicializuje novou instanci CustomAttributeTypedArgument třídy se zadanou hodnotou.

public:
 CustomAttributeTypedArgument(System::Object ^ value);
public CustomAttributeTypedArgument (object value);
new System.Reflection.CustomAttributeTypedArgument : obj -> System.Reflection.CustomAttributeTypedArgument
Public Sub New (value As Object)

Parametry

value
Object

Hodnota argumentu vlastního atributu.

Výjimky

value je null.

Poznámky

Parametr value nemůže být null pro tento konstruktor, protože typ argumentu je odvozen z typu value. Chcete-li zadat null hodnotu, použijte CustomAttributeTypedArgument(Type, Object) konstruktor .

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

Platí pro

CustomAttributeTypedArgument(Type, Object)

Zdroj:
CustomAttributeTypedArgument.cs
Zdroj:
CustomAttributeTypedArgument.cs
Zdroj:
CustomAttributeTypedArgument.cs

Inicializuje novou instanci CustomAttributeTypedArgument třídy se zadaným typem a hodnotou.

public:
 CustomAttributeTypedArgument(Type ^ argumentType, System::Object ^ value);
public CustomAttributeTypedArgument (Type argumentType, object value);
public CustomAttributeTypedArgument (Type argumentType, object? value);
new System.Reflection.CustomAttributeTypedArgument : Type * obj -> System.Reflection.CustomAttributeTypedArgument
Public Sub New (argumentType As Type, value As Object)

Parametry

argumentType
Type

Typ argumentu vlastního atributu.

value
Object

Hodnota argumentu vlastního atributu.

Výjimky

argumentType je null.

Poznámky

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

Platí pro