Name Property

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

Syntax

ISearchCatalog.Name

Example

The following example displays the name of the catalogs.

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 

For Each objCatalog in objCatalogs
  Wscript.echo "objCatalog: " & objCatalog.Name 
Next

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

See Also

Status


© 1997-1998 Microsoft Corporation. All rights reserved.