Share via


CDynamicAccessor::SetStatus

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at CDynamicAccessor::SetStatus.

Sets the status of the specified column.

Syntax

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

Parameters

nColumn
[in] The column number. Column numbers start with 1. A value of 0 refers to the bookmark column, if any.

status
[in] The column status. See DBSTATUS in the OLE DB Programmer's Reference for more information.

pColumnName
[in] A pointer to a character string containing the column name.

Return Value

Returns true if the specified column status is set successfully. Otherwise, this function returns false.

Requirements

Header: atldbcli.h

See Also

CDynamicAccessor Class
CDynamicAccessor::GetStatus