Protocols Property

This read-only property specifies the protocols (an IProtocols interface) that Search uses when crawling.

Syntax

IBuildCatalog.Protocols

Remarks

The types of protocols are:

File

Search crawls use FILE protocol.

HTTP

Search crawls use HTTP protocol.

Exch

Search crawls use Exchange folders.

Example

The following example displays which protocols are searched for all catalog definitions.

Option Explicit 
On Error Resume Next

Dim objSearchAdmin, objBuildServer, objCatalogs, objCatalog, Protocols, Protocol 

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

For Each objCatalog in objCatalogs
  Set Protocols = objCatalog.Protocols
  Wscript.Echo objCatalog.Name & " searches the following protocols:"

  For Each Protocol in Protocols
    If Protocol.Included Then Wscript.Echo Protocol.Urlname
  Next

Next

'Release objects 
Set Protocol  = Nothing 
Set Protocols = Nothing 
Set objCatalogs  = Nothing 
Set objBuildServer  = Nothing 
Set objSearchAdmin  = Nothing 
 

See Also

Extensions, IProtocols interface


© 1997-1998 Microsoft Corporation. All rights reserved.