CDynamicAccessor::GetLength

检索指定的列的长度。

bool GetLength( 
   DBORDINAL nColumn, 
   DBLENGTH* pLength  
) const throw( ); 
bool GetLength( 
   const CHAR* pColumnName, 
   DBLENGTH* pLength  
) const throw( ); 
bool GetLength( 
   const WCHAR* pColumnName, 
   DBLENGTH* pLength  
) const throw( );

参数

  • nColumn
    [in] 列号。 列数以 1 开始。 若有的话,值 0 是指书签列。

  • pColumnName
    [in] 为包含列名的字符串的指针。

  • pLength
    [out] 为包含列长度(按字节)的整数的指针。

返回值

如果指定的列找到,返回 true。 否则,该函数返回false

备注

第一种重写方法将采用列数,并且,第二个和第三个重写分别采用ANSI 或 Unicode 格式的列名。

要求

标头: atldbcli.h

请参见

参考

CDynamicAccessor 类

CDynamicAccessor::SetLength