CustomAttributeTypedArgument Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy CustomAttributeTypedArgument.

Przeciążenia

CustomAttributeTypedArgument(Object)

Inicjuje CustomAttributeTypedArgument nowe wystąpienie klasy z określoną wartością.

CustomAttributeTypedArgument(Type, Object)

Inicjuje CustomAttributeTypedArgument nowe wystąpienie klasy z określonym typem i wartością.

CustomAttributeTypedArgument(Object)

Inicjuje CustomAttributeTypedArgument nowe wystąpienie klasy z określoną wartością.

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

Wartość argumentu atrybutu niestandardowego.

Wyjątki

value to null.

Uwagi

Nie value można stosować null parametru dla tego konstruktora, ponieważ typ argumentu valuejest wywnioskowany z typu . Aby określić null wartość, użyj konstruktora CustomAttributeTypedArgument(Type, Object) .

Ten konstruktor jest używany przez dziedziczenie CustomAttributeTypedArgument klasy. Nie jest przeznaczony do użycia w kodzie aplikacji.

Dotyczy

CustomAttributeTypedArgument(Type, Object)

Inicjuje CustomAttributeTypedArgument nowe wystąpienie klasy z określonym typem i wartością.

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 atrybutu niestandardowego.

value
Object

Wartość argumentu atrybutu niestandardowego.

Wyjątki

argumentType to null.

Uwagi

Ten konstruktor jest używany przez dziedziczenie CustomAttributeTypedArgument klasy. Nie jest przeznaczony do użycia w kodzie aplikacji.

Dotyczy