IEnumCERTVIEWCOLUMN::IsIndexed

[This is preliminary documentation and subject to change.]

The IsIndexed method reports whether the column is indexed.

[VB] Long IsIndexed();
 
[JAVA] int IsIndexed();
 
[C++] HRESULT IsIndexed(
  LONG *pIndexed  // out
);
 

Parameters

[C++] pIndexed
Pointer to a LONG variable. This function will fail if pIndexed is NULL.

Return Values

[VB][JAVA] The return value is 1 is the column is indexed, or 0 otherwise.

[C++] The return value is an HRESULT. A value of S_OK indicates success. If the column is indexed, pIndex will point to a value of TRUE; if the column is not indexed, pIndex will point to a value of FALSE.

Remarks

This function is used to determine if a Certificate Server view's column is indexed.

If the IEnumCERTVIEWCOLUMN object is not referencing a valid column, ISIndexed will fail. Use the IEnumCERTVIEWCOLUMN Next method to reference a valid column.

Example

HRESULT    hr;
LONG       bIsindexed;

// pEnumCol is previously instantiated IEnumCERTVIEWColumn object
hr = pEnumCol->IsIndexed( &bIsindexed );
if ( S_OK == hr )
    printf( bIsindexed ? "Indexed\n" : "Not indexed\n");
 

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

IEnumCERTVIEWCOLUMN::GetMaxLength