GlobalCatalogSearchTime Property

Provides access to the time in milliseconds of the last global catalog search.

Syntax

ActiveDirectory.GlobalCatalogSearchTime

Access

Read only.

Return Type

Long.

Example

To determine the time required to search the global catalog, enter:


Dim objActiveDirectory
Dim lngObjectCount, lngSearchTime

Set objActiveDirectory = CreateObject("McActiveDir.ActiveDirectory")

lngObjectCount = objActiveDirectory.SearchGlobalCatalog("(objectCategory=person)")
If lngObjectCount >= 0 Then
lngSearchTime = objActiveDirectory.GlobalCatalogSearchTime
End If

Set objActiveDirectory = Nothing

This example determines the amount of time to search the global catalog for all person objects.