Lenguaje

Type.GetNullableUnderlyingType Método

Definición

Obtiene el argumento de tipo subyacente del tipo que acepta valores NULL actual.

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

Devoluciones

Argumento de tipo subyacente si el tipo actual es un tipo construido Nullable<T> ; de lo contrario, null.

Excepciones

El tipo actual es un tipo derivado que no invalida este método.

Comentarios

Las clases derivadas deben invalidar este método. La implementación base produce NotSupportedException.

Se aplica a