Item Property

This read-only property accesses a catalog (ISearchCatalog object).

Syntax

ISearchCatalogs[.Item(Catalog)]

Settings

Catalog

The catalog to access.

Remarks

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

Example

The following example accesses the catalog KMSampleCatalog1, and then displays its name, which is KMSampleCatalog1.

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 "Accessed catalog " & objCatalog.Name 

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

See Also

Remove


© 1997-1998 Microsoft Corporation. All rights reserved.