System.Rtti.TValue.AsType

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

function AsType<T>(const EmptyAsAnyType: Boolean = True): T;

C++

T __fastcall TValue::AsType(const bool EmptyAsAnyType)

Propriétés

Type Visibilité  Source Unité  Parent
function public
System.Rtti.pas
SystemRtti.h
System.Rtti TValue

Description

Transtype la valeur actuellement stockée en un autre type.

Appelez AsType pour convertir la valeur stockée en un autre type. AsType renvoie la valeur nouvelle, convertie, si la conversion a réussi ; sinon, une exception est déclenchée.

Voir aussi