[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
);
[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.
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.
// 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);
Windows NT: Requires version 5.0 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in certview.h.
Import Library: Use certidl.lib.
ICertView::SetResultColumnCount