Status Property

This read-only property specifies the status of the catalog.

Syntax

ISearchCatalog.Status

Example

The following example displays the status of the KMSampleCatalog1 catalog.

Option Explicit 
On Error Resume Next

Dim objSearchAdmin, objSearchServer, objCatalogs, objCatalog 

Set objSearchAdmin  = CreateObject("Search.SearchAdmin.1")
Set objSearchServer = objSearchAdmin.SearchServer
Set objCatalogs  = objSearchServer.SearchCatalogs
Set objCatalog   = objCatalogs("KMSampleCatalog1")

Wscript.echo "The status of catalog " & objCatalog.Name & " is " 
  & objCatalog.Status

'Release objects 
Set objCatalog   = Nothing 
Set objCatalogs  = Nothing 
Set objSearchServer = Nothing
Set objSearchAdmin  = Nothing 
 

See Also

QueryTimeout


© 1997-1998 Microsoft Corporation. All rights reserved.