Item Property

This read-only property accesses a Web page from the list of Web pages.

Syntax

IStartPages[.Item(URL)]

Parameters

URL

The URL of the Web page to add to the list of Web pages.

Remarks

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

Example

The following example displays the URLs of the start pages for the KMSampleCatalog1 catalog definition.

Option Explicit 
On Error Resume Next

Dim objSearchAdmin, objBuildServer, objCatalogs, objCatalog, objStartPages, objStartPage 

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

Wscript.Echo objCatalog.Name & " searches the following start pages:"

For Each objStartPage in objStartPages
  Wscript.Echo "  " & objStartPage.URL
Next

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

See Also

Add, Count, IStartPage, Remove


© 1997-1998 Microsoft Corporation. All rights reserved.