Język

Type.GetNullableUnderlyingType Metoda

Definicja

Pobiera argument typu bazowego bieżącego typu dopuszczanego do wartości null.

public:
 virtual Type ^ GetNullableUnderlyingType();
public virtual Type? GetNullableUnderlyingType();
abstract member GetNullableUnderlyingType : unit -> Type
override this.GetNullableUnderlyingType : unit -> Type
Public Overridable Function GetNullableUnderlyingType () As Type

Zwraca

Argument typu bazowego, jeśli bieżący typ jest typem skonstruowanym Nullable<T> ; w przeciwnym razie null.

Wyjątki

Bieżący typ jest typem pochodnym, który nie zastępuje tej metody.

Uwagi

Klasy pochodne muszą zastąpić tę metodę. Implementacja podstawowa zgłasza błąd NotSupportedException.

Dotyczy