ICertView::GetColumnCount

[This is preliminary documentation and subject to change.]

The GetColumnCount method retrieves the count of columns in the view of the Certificate Server database.

[VB] Long GetColumnCount(
  Long fResultColumn
);
 
[JAVA] int GetColumnCount(
  int fResultColumn
);
 
[C++] HRESULT GetColumnCount(
  LONG ResultColumn,  // in 
  LONG *pcColumn      // out
);
 

Parameters

fResultColumn
Boolean value. If this value is TRUE, the view is based on a result set; a value of FALSE means the view is based on the full database schema. A result set is used for customizing the view to the Certificate Server data.
[C++] pcColumn
Pointer to variable that will contain the number of columns in the view. This function will fail if pcColumn is NULL.

Return Values

[VB][JAVA] The return value is the number of columns in the view.

[C++] The return value is an HRESULT. A value of S_OK indicates success. Upon successful completion of this function, pcColumn will point to the variable containing the number of columns in the view.

Remarks

This function is used to determine the number of columns in the view. The number will represent the count of a result set's columns if fResultColumn is TRUE or the count of the full database schema's columns if fResultColumn is FALSE.

Example

// pCertView is pointer to ICertView
LONG        cCol
HRESULT    hr;
hr = pCertView->GetColumnCount( TRUE, &cCol );
if ( S_OK != hr )
    printf("Failed GetColumnCount - %x\n", hr);
else
    printf("Number of columns in the view is: %d\n", cCol);
 

QuickInfo

  Windows NT: Requires version 5.0 or later.
  Windows: Unsupported.
  Windows CE: Unsupported.
  Header: Declared in certview.h.
  Import Library: Use certidl.lib.

See Also

ICertView::SetResultColumnCount