Idioma

Type.GetNullableUnderlyingType Método

Definição

Obtém o argumento do tipo subjacente do tipo 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

Devoluções

O argumento do 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 sobrepõe este método.

Observações

As classes derivadas devem sobrepor-se a este método. A implementação base lança NotSupportedException.

Aplica-se a