EnumerationDepth Property

This property specifies the number of page hops (jumps that cross a site boundary).

Syntax

IStartPage.EnumerationDepth

Example

The following example displays the number of page hops for the site Microsoft.com 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 
Set objStartPage   = objStartPages.Item("http://www.microsoft.com")

Wscript.Echo objCatalog.Name & " is configured with " & objStartPage.EnumerationDepth 
  & " page hops For " & objStartPage.URL 

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

See Also

FollowDirectories, HostDepth, URL


© 1997-1998 Microsoft Corporation. All rights reserved.