This property specifies the type of project definition.
Syntax
IBuildCatalog.ProjectType
Remarks
If ProjectType is Crawl, the catalog definition is for a crawl; if ProjectType is Notification, the catalog definition is for a notification and you must also set the NotificationSource property.
Example
The following example displays the project type for all catalog definitions.
Option Explicit
On Error Resume Next
Const Crawl = 1
Const Notification = 0
Dim objSearchAdmin, objBuildServer, objCatalogs, objCatalog
Set objSearchAdmin = CreateObject("Search.SearchAdmin.1")
Set objBuildServer = objSearchAdmin.BuildServer
Set objCatalogs = objBuildServer.BuildCatalogs
For Each objCatalog in objCatalogs
Select Case objCatalog.ProjectType
Case Crawl
Wscript.Echo "The project type For " & objCatalog.Name _
& " is Crawl"
Case Notification
Wscript.Echo "The project type For " & objCatalog.Name _
& " is Notification"
End Select
Next
'Release objects
Set objCatalogs = Nothing
Set objBuildServer = Nothing
Set objSearchAdmin = Nothing
See Also
IGatherNotify, NotificationSource