This property specifies whether the list of extensions are included or are excluded by Search when it builds a catalog.
Syntax
IExtensions.IncludedExtension
Remarks
If True, the list is of filename extensions to include; if False, the list is of filename extensions to exclude.
Example
The following example displays the extensions for all catalogs, and whether they are included or excluded by Search.
Option Explicit
On Error Resume Next
Dim objSearchAdmin, objBuildServer, objCatalogs, objCatalog
Dim objExtensions, objExtension, ExInclude
Set objSearchAdmin = CreateObject("Search.SearchAdmin.1")
Set objBuildServer = objSearchAdmin.BuildServer
Set objCatalogs = objBuildServer.BuildCatalogs
For Each objCatalog in objCatalogs
Set objExtensions = objCatalog.objExtensions
If objExtensions.IncludedExtension Then
ExIncludes = " includes"
Else
ExIncludes = " excludes"
End If
Wscript.Echo objCatalog.Name & ExIncludes & " these extensions:"
For Each objExtension in objExtensions
Wscript.Echo " " & objExtension.objExtension
Next
Next
'Release objects
Set objExtension = Nothing
Set objExtensions = Nothing
Set objCatalog = Nothing
Set objCatalogs = Nothing
Set objBuildServer = Nothing
Set objSearchAdmin = Nothing
See Also