This read-only property specifies the number of logs in the list.
Syntax
IGatherLogs.Count
Example
The following example displays the number of logs for the KMSampleCatalog2 catalog definition.
Option Explicit
On Error Resume Next
Dim objSearchAdmin, objBuildServer, objCatalogs, objCatalog, objLogs
Set objSearchAdmin = CreateObject("Search.SearchAdmin.1")
Set objBuildServer = objSearchAdmin.BuildServer
Set objCatalogs = objBuildServer.BuildCatalogs
Set objCatalog = objCatalogs("KMSampleCatalog2")
Set objLogs = objCatalog.objLogs
Wscript.Echo objCatalog.Name & " has " & objLogs.Count & " gatherer logs."
'Release objects
Set objLogs = Nothing
Set objCatalog = Nothing
Set objCatalogs = Nothing
Set objBuildServer = Nothing
Set objSearchAdmin = Nothing
See Also
IGatherLog interface, Item