IADsContainer Property: Count

Property Name
Count

Property Type
Long

Description
Gets the number of active objects within a container.
This property is read-only.

Remarks
The Count property is not implemented for File and RegistryKey objects.

Example

Dim ContainerObject As IADsContainer
Set ContainerObject = GetObject("NTDS://YourDomainName")
Debug.Print ContainerObject.Count

 

See Also