System.Variant.operator ()

提供: RAD Studio API Documentation
移動先: 案内検索

C++

__fastcall operator bool()            const;
__fastcall operator char()            const;
__fastcall operator signed char()     const;
__fastcall operator unsigned char()   const;
__fastcall operator short()           const;
__fastcall operator unsigned short()  const;
__fastcall operator int()             const;
__fastcall operator unsigned int()    const;
__fastcall operator long()            const;
__fastcall operator unsigned long()   const;
__fastcall operator float()           const;
__fastcall operator double()          const;
__fastcall operator __int64()         const;
__fastcall operator unsigned __int64()const;
__fastcall operator AnsiString()      const;
__fastcall operator Currency()        const;
__fastcall operator TDateTime()       const;
__fastcall operator WideString()      const;
__fastcall operator UnicodeString()   const;
__fastcall operator CURRENCY()        const;
__fastcall operator DECIMAL()         const;
__fastcall operator VARIANT();
__fastcall operator TVariant();
__fastcall operator wchar_t*()        const;
__EXPLICIT __fastcall operator IDispatch*();
__EXPLICIT __fastcall operator IUnknown*();
__EXPLICIT __fastcall operator IInterface*();
__EXPLICIT __fastcall operator signed char*();
__EXPLICIT __fastcall operator unsigned char*();
__EXPLICIT __fastcall operator short*();
__EXPLICIT __fastcall operator unsigned short*();
__EXPLICIT __fastcall operator int*();
__EXPLICIT __fastcall operator unsigned int*();
__EXPLICIT __fastcall operator long*();
__EXPLICIT __fastcall operator unsigned long*();
__EXPLICIT __fastcall operator float*();
__EXPLICIT __fastcall operator double*();
__EXPLICIT __fastcall operator __int64*();
__EXPLICIT __fastcall operator unsigned __int64*();
__EXPLICIT __fastcall operator VARIANT*();
__EXPLICIT __fastcall operator LPSAFEARRAY();
__EXPLICIT __fastcall operator TVariant*();
__EXPLICIT __fastcall operator Currency*();
__EXPLICIT __fastcall operator TDateTime*();
__EXPLICIT __fastcall operator wchar_t**();

プロパティ

種類 可視性 ソース ユニット
function public sysvari.h System Variant

説明

Variant を変換します。

この変換演算子は、Variant の変換結果である型を返します。T* 変換が使用される場合、この演算子は varByRef ビットを設定します。つまり、Variant は値ではなく参照を含んでいます。

無効なバリアント型の変換であるために変換操作を実行できない場合は、EVariantError 例外が発生します。