IContentListSchema::get_ColumnName, put_ColumnName
The ColumnName property is a read/write string that contains the name of the column.
Definition
Get method:
HRESULT IContentListSchema::get_ColumnName(VARIANTvColumn,BSTR*ColumnName);
Put method:
HRESULT IContentListSchema::put_ColumnName(VARIANTvColumn,BSTRColumnName);
Parameters
vColumn
[in] A VARIANT that contains either the column name or the column position in order to identify the column in question. Column positions are counted from zero (0), not one (1).
ColumnName
[in] When putting the property, a BSTR that contains the new column name.
[out,retval] When getting the property, a pointer to a BSTR used to return the current column name.
Return Values
These methods return an HRESULT indicating whether or not they completed successfully. See the Error Values section for more details.
Error Values
These methods return S_OK (0x00000000) to indicate success and standard COM HRESULT error values to indicate failure. For more information about standard COM errors, see Standard COM Errors. Additional information may be available using the global Err object, which can be accessed using the API function GetErrorInfo. In particular, the GetDescription method of the IErrorInfo interface may return a text description of the error.
Remarks
Though using a column name as the value of the vColumn parameter in order to retrieve that same column name may be fruitless, passing a column name does make sense when changing the column name.