LostAndFoundCount Property

The number of Active Directory objects in the lost and found container. To determine the lost and found count, you must first bind to the lost and found container.

Syntax

ActiveDirectory.LostAndFoundCount

Access

Read only.

Return Type

Long.

Example

To determine the number of objects in the lost and found container, enter:


Dim objActiveDirectory
Dim lngCount

Set objActiveDirectory = CreateObject("McActiveDir.ActiveDirectory")

If objActiveDirectory.BindLostFoundContainer Then
lngCount = objActiveDirectory.LostAndFoundCount
End If

Set objActiveDirectory = Nothing

This example binds to the lost and found container and determines the number of objects in the container.