System.Variant.operator ()

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

C++

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

プロパティ

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

説明

Variant を変換します。

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

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