、提取器

Microsoft 专用

从中封装的 变量 对象来提取数据。

operator short( ) const; 
operator long( ) const; 
operator float( ) const; 
operator double( ) const; 
operator CY( ) const; 
operator _bstr_t( ) const; 
operator IDispatch*( ) const; 
operator bool( ) const; 
operator IUnknown*( ) const; 
operator DECIMAL( ) const; 
operator BYTE( ) const;
operator VARIANT() const throw();
operator char() const;
operator unsigned short() const;
operator unsigned long() const;
operator int() const;
operator unsigned int() const;
operator __int64() const;
operator unsigned __int64() const;

备注

从中封装的 变量提取原始数据。如果 变量 尚未适当的类型, VariantChangeType 用于尝试转换,并且,错误会在失败:

  • short 运算符 () 提取 short 整数值。

  • 长期运算符 () 提取 long 整数值。

  • 浮点运算符 () 提取 float 数值。

  • 二进制运算符 () 提取 二进制文件 整数值。

  • 运算符 CY () 提取 CY 对象。

  • bool 运算符 () 提取 bool 值。

  • 运算符十进制 () 提取 decimal 值。

  • 运算符字节 () 提取 字节 值。

  • _bstr_t 运算符 () 提取字符串,在 _bstr_t 对象中封装。

  • 运算符 IDispatch* () 从中封装的 变量提取调度接口指针。AddRef 对结果指针,因此,它由调用 版本 的来释放它。

  • 运算符 IUnknown* () 从中封装的 变量提取 COM 接口指针。AddRef 对结果指针,因此,它由调用 版本 的来释放它。

特定于 Microsoft 的结尾

请参见

参考

、选件类