CustomAttributeTypedArgument Konstruktory
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Inicjuje nowe wystąpienie klasy CustomAttributeTypedArgument.
Przeciążenia
| Nazwa | Opis |
|---|---|
| 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)
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)
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.