Idioma

Type.GetNullableUnderlyingType Método

Definição

Obtém o argumento de tipo subjacente do tipo que permite valor nulo atual.

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

Retornos

O argumento de tipo subjacente se o tipo atual for um tipo construído Nullable<T> ; caso contrário, null.

Exceções

O tipo atual é um tipo derivado que não substitui esse método.

Comentários

Classes derivadas devem substituir esse método. A implementação base é gerada NotSupportedException.

Aplica-se a