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 nowe wystąpienie CustomAttributeTypedArgument klasy z określoną wartością. |
| CustomAttributeTypedArgument(Type, Object) |
Inicjuje nowe wystąpienie CustomAttributeTypedArgument klasy o określonym typie i wartości. |
CustomAttributeTypedArgument(Object)
Inicjuje nowe wystąpienie CustomAttributeTypedArgument 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
Parametr value ma wartość null.
Uwagi
Parametr value nie może być null 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 dziedziczy CustomAttributeTypedArgument klasy . Nie jest przeznaczony do użycia w kodzie aplikacji.
Dotyczy
CustomAttributeTypedArgument(Type, Object)
Inicjuje nowe wystąpienie CustomAttributeTypedArgument 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
Parametr argumentType ma wartość null.
Uwagi
Ten konstruktor jest używany przez dziedziczy CustomAttributeTypedArgument klasy . Nie jest przeznaczony do użycia w kodzie aplikacji.