CustomAttributeTypedArgument Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy CustomAttributeTypedArgument.

Przeciążenia

CustomAttributeTypedArgument(Object)

Inicjuje CustomAttributeTypedArgument nowe wystąpienie klasy o określonej wartości.

CustomAttributeTypedArgument(Type, Object)

Inicjuje CustomAttributeTypedArgument nowe wystąpienie klasy o określonym typie i wartości.

CustomAttributeTypedArgument(Object)

Źródło:
CustomAttributeTypedArgument.cs
Źródło:
CustomAttributeTypedArgument.cs
Źródło:
CustomAttributeTypedArgument.cs

Inicjuje CustomAttributeTypedArgument nowe wystąpienie klasy o określonej 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 null stosować parametru dla tego konstruktora, ponieważ typ argumentu valuejest wnioskowany 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)

Źródło:
CustomAttributeTypedArgument.cs
Źródło:
CustomAttributeTypedArgument.cs
Źródło:
CustomAttributeTypedArgument.cs

Inicjuje CustomAttributeTypedArgument nowe wystąpienie klasy o określonym typie 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