Item Property

This read-only property accesses a catalog definition (IBuildCatalog interface) by name.

Syntax

IBuildCatalogs[.Item(Catalog)]

Parameters

Catalog

The catalog to access.

Remarks

Since IBuildCatalogs is a collection, you need only include Item to access an IBuildCatalog object by name (see the following Example).

Example

The following example accesses the catalog definition KMSampleCatalog1 and then displays its name.

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
Set objCatalog  = objCatalogs("KMSampleCatalog1")

Wscript.Echo "Accessed catalog " & objCatalog.Name 

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

See Also

Remove


© 1997-1998 Microsoft Corporation. All rights reserved.