This read-only property accesses a path rule in the list of path rules.
Syntax
ISitePaths[.Item(Path)]
Parameters
Path
A path in the list of path rules that Search crawls or avoids.
Remarks
Since ISitePaths is a collection, you need only include Item to access an ISitePaths object by name (see the following Example).
Example
The following example displays the names of all of the path rules for the site Microsoft.com.
Option Explicit 
On Error Resume Next
Dim objSearchAdmin, objBuildServer, objCatalogs, objCatalog, objSites, objSite, objPaths, objPath 
Set objSearchAdmin = CreateObject("Search.SearchAdmin.1")
Set objBuildServer = objSearchAdmin.BuildServer
Set objCatalogs = objBuildServer.BuildCatalogs 
Set objCatalog  = objCatalogs("KMSampleCatalog2")
Set objSites    = objCatalog.objSites
Set objSite     = objSites.Item("Microsoft.com")
Set objPaths    = objSite.objPaths 
Wscript.Echo "The restricted site " & objSite.Name & " has these paths:"
For Each objPath in objPaths
  If objPath.Included Then 
    Wscript.Echo "  " & objPath.objPath & " is crawled."
  Else
    Wscript.Echo "  " & objPath.objPath & " is ignored."
  End If
Next
'Release objects
Set objPath     = Nothing 
Set objPaths    = Nothing 
Set objSite     = Nothing 
Set objSites    = Nothing 
Set objCatalog  = Nothing 
Set objCatalogs = Nothing 
Set objBuildServer = Nothing 
Set objSearchAdmin = Nothing 
 See Also