IAdminIndexServer::FindFirstCatalog method

[Indexing Service is no longer supported as of Windows XP and is unavailable for use as of Windows 8. Instead, use Windows Search for client side search and Microsoft Search Server Express for server side search.]

Determines whether a catalog exists. It also initializes the enumeration of catalogs, enabling you to find additional catalogs using the FindNextCatalog method.

Syntax

HRESULT FindFirstCatalog(
  [out, retval] VARIANT_BOOL *pfFound
);

Parameters

pfFound [out, retval]

VARIANT_TRUE if catalog was found, otherwise VARIANT_FALSE.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

If this method finds a catalog, use GetCatalog to retrieve the catalog object. To find additional catalogs, if any, use the FindNextCatalog method after using FindFirstCatalog.

Examples

Set objCatAdmin = CreateObject("Microsoft.ISAdm")
' Find the first catalog
bFound = objCatAdmin.FindFirstCatalog()
If (bFound) 
   Set objCatAdm = objAdminIS.GetCatalog()
'   Work with this catalog
'   Free this catalog object
   Set objCatAdm = Nothing
EndIf 

Requirements

Minimum supported client
Windows 2000 Professional [desktop apps only]
Minimum supported server
Windows 2000 Server [desktop apps only]
End of client support
Windows 7
End of server support
Windows Server 2008 R2
DLL
Ciodm.dll

See also

IAdminIndexServer