GetComputersContainer

Returns the parent container object for computer profiles in the zone.

Syntax

DirectoryEntry GetComputersContainer()

Return value

The DirectoryEntry object of the zone’s Computers container.

Discussion

If the Computers 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

GetComputersContainer may throw the following exception:

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