Remove Method

This method removes a Web page from the list of Web pages.

Syntax

IStartPages.Remove(URL)

Parameters

URL

The URL of the Web page to remove from the list of Web pages.

Example

The following example removes the http://www.microsoft.com Web page from the list of Web pages that Search crawls.

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("KMSampleCatalog2")
Set objStartPages  = objCatalog.objStartPages

objStartPages.Remove("http://www.microsoft.com") 

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

See Also

Add, Count, IStartPage


© 1997-1998 Microsoft Corporation. All rights reserved.