BuildCatalogs Property

This read-only property specifies the IBuildCatalogs object on the host.

Syntax

IBuildServer.BuildCatalogs

Example

The following example accesses the IBuildCatalogs object, listing the names of the catalog definitions.

Option Explicit 
On Error Resume Next

Dim objSearchAdmin, objBuildServer, objCatalogs, objCatalog 

Set objSearchAdmin   = CreateObject("Search.SearchAdmin.1")
Set objBuildServer   = objSearchAdmin.BuildServer
Set objCatalogs = objBuildServer.BuildCatalogs

For Each objCatalog in objCatalogs
  Wscript.Echo "Catalog definition: " & objCatalog.Name
Next

'Release objects 
Set objCatalogs = Nothing
Set objBuildServer   = Nothing
Set objSearchAdmin   = Nothing 
 

See Also

IBuildCatalog interface, IBuildCatalogs interface


© 1997-1998 Microsoft Corporation. All rights reserved.