CDynamicAccessor::SetStatus

设置指定列的状态。

bool SetStatus( 
   DBORDINAL nColumn, 
   DBSTATUS status  
) throw( ); 
bool SetStatus( 
   const CHAR* pColumnName, 
   DBSTATUS status  
) throw( ); 
bool SetStatus( 
   const WCHAR* pColumnName, 
   DBSTATUS status  
) throw( );

参数

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

  • status
    [in] 列状态: 有关更多信息,请参见DBSTATUS in the OLE DB Programmer's Reference

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

返回值

如果指定的列状态成功,将返回 true。 否则,该函数返回false

要求

标头: atldbcli.h

请参见

参考

CDynamicAccessor 类

CDynamicAccessor::GetStatus