Soap.InvokeRegistry.TRemotableTypeRegistry.VariantToInfo
Delphi
function VariantToInfo(const V: Variant; TryAllSchema: Boolean): PTypeInfo;
C++
System::Typinfo::PTypeInfo __fastcall VariantToInfo(const System::Variant &V, bool TryAllSchema);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Soap.InvokeRegistry.pas Soap.InvokeRegistry.hpp |
Soap.InvokeRegistry | TRemotableTypeRegistry |
Description
Returns the TypeInfo pointer for the type of a specified Variant's data.
VariantToInfo returns the TypeInfo pointer of the scalar type that represents the value of a Variant. If the Variant's value is not a scalar type that can be marshaled without using a registered object or type, VariantToInfo raises an ETypeRegistryException exception.
V is the Variant for which you want the corresponding TypeInfo pointer.
TryAllSchema specifies whether VariantToInfo should check for corresponding scalar type definitions in the XML schema associated with this application, or whether it should check all the possible sets of XML schema types that are defined in the xmlschema unit.