#### ADSI Container Objects

Any IIS Admin Object that can contain other objects can also implement the IADsContainer interface, in addition to the IADs interface. Examples of IIS Admin Objects that support IADsContainer include the following:

- IIsComputer, which can contain IIsWebService and IIsFtpService objects, among others.
- IIsWebVirtualDir object, which can contain IIsWebDirectory and IIsWebFile objects, as well as additional IIsWebVirtualDir objects.

The IADsContainer interface permits objects to contain other objects, and provides a way to implement the following tasks:

- Create objects within the container.
- Delete objects from the container.
- Count the number of objects within the container.
- Enumerate the contained objects.
- Access the contained objects.

The IIS Admin Objects that can contain other objects can also implement container object properties and methods. These objects accomplish this by supporting the IADsContainer interface, the _NewEnum and Count properties, and the GetObject, Create, and Delete methods. IIS Admin Objects also support the basic IADs interface properties and methods, and any IIS-specific or extended properties and methods.

For more information, see the ADSI Reference.

© 1997-2001 Microsoft Corporation. All rights reserved.