ICertView::GetColumnIndex method

The GetColumnIndex method retrieves the zero-based index of a column.

Syntax

HRESULT GetColumnIndex(
  LONG       fResultColumn,
  const BSTR strColumnName,
  LONG       *pColumnIndex
);

Parameters

fResultColumn

Specifies the column. This parameter can be one of the following values.

Value Meaning
CVRC_COLUMN_SCHEMA
Schema column information.
CVRC_COLUMN_RESULT
Result column information.
CVRC_COLUMN_VALUE
Value column information.
CVRC_COLUMN_MASK
Column information mask.

strColumnName

A string that contains the nonlocalized name of a column in the view.

pColumnIndex

The address of a variable that will contain the index of the column specified in the strColumnName parameter. This method fails if pColumnIndex is NULL.

Return Value

C++

If the method succeeds, the method returns S_OK.

If the method fails, it returns an HRESULT value that indicates the error. For a list of common error codes, see Common HRESULT Values.

VB

The return value is the zero-based index of the column.

Remarks

This method is used to determine the index of the column specified by the strColumnName parameter. The column indices are zero-based (the first column is index zero).

Requirements

   
Minimum supported client None supported
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header certview.h (include Certsrv.h)
Library Certidl.lib
DLL Certadm.dll

See Also

ICertView

ICertView2

ICertView::SetRestriction