BindLostFoundContainer Method

Binds to the lost and found container.

Syntax

ActiveDirectory.BindLostFoundContainer

Parameters

None.

Return Type

Boolean.

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.