GetUsersContainer

Returns the directory entry for the parent container object for the user profiles in the zone.

Syntax

DirectoryEntry GetUsersContainer()

Return value

The directory entry of the zone’s Users container.

Discussion

If the Users container does not exist, this method creates one for you.

This method can only be used in .NET programs because DirectoryEntry is a .NET-specific class for directory objects. This method cannot be used in COM-based programs.

Exceptions

GetUsersContainer may throw the following exception:

  • ApplicationException if you try to use this method in a COM-based program.