Item Property

This read-only property accesses a search server (IIndexDs object) to which a catalog definition is propagated.

Syntax

ICatalogSearchServerList[.Item(Server)]

Parameters

Server

The server that is accessed.

Remarks

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

Example

The following example lists all of the servers to which the KMSampleCatalog2 catalog definition is propated.

Option Explicit 
On Error Resume Next

Dim objSearchAdmin, objBuildServer, objCatalogs, objCatalog, objServers 

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

For Each objServers in objCatalog.SearchServers 
  Wscript.Echo objServers.Name 
Next

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

See Also

Count, IIndexDs interface


© 1997-1998 Microsoft Corporation. All rights reserved.