2025-04-27 07:49:33 -04:00

78 lines
3.5 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252">
<TITLE>ADSI Container Objects</TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!--
TempString = navigator.appVersion
if (navigator.appName == "Microsoft Internet Explorer"){
// Check to see if browser is Microsoft
if (TempString.indexOf ("4.") >= 0){
// Check to see if it is IE 4
document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/coua.css">');
}
else {
document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/cocss.css">');
}
}
else if (navigator.appName == "Netscape") {
// Check to see if browser is Netscape
document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/coua.css">');
}
else
document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/cocss.css">');
//-->
</script>
<SCRIPT LANGUAGE="VBScript">
<!--
Sub Window_OnLoad()
Dim frmContents
On Error Resume Next
If Not Parent Is Nothing Then
Set frmContents = Parent.Contents
If Not frmContents Is Nothing Then
frmContents.Window.TOCSynch_Click
End If
End If
End Sub
//--></SCRIPT><META NAME="DESCRIPTION" CONTENT="Internet Information Services reference information">
<META HTTP-EQUIV="PICS-Label" CONTENT='(PICS-1.1 "<http://www.rsac.org/ratingsv01.html>" l comment "RSACi North America Server" by "inet@microsoft.com <mailto:inet@microsoft.com>" r (n 0 s 0 v 0 l 0))'>
<META NAME="MS.LOCALE" CONTENT="EN-US">
<META NAME="MS-IT-LOC" Content="Internet Information Services">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H4><A NAME="_k2_adsi_container_objects"></A><SUP></SUP>ADSI Container Objects</H4>
<P>Any IIS Admin Object that can contain other objects can also implement the <B>IADsContainer</B> interface, in addition to the <B>IADs</B> interface. Examples of IIS Admin Objects that support <B>IADsContainer</B> include the following:
<UL type=disc>
<LI><B>IIsComputer</B>, which can contain <B>IIsWebService</B> and <B>IIsFtpService</B> objects, among others.</li>
<LI><B>IIsWebVirtualDir</B> object, which can contain <B>IIsWebDirectory</B> and <B>IIsWebFile</B> objects, as well as additional <B>IIsWebVirtualDir</B> objects.</li>
</UL>
<P>The <B>IADsContainer</B> interface permits objects to contain other objects, and provides a way to implement the following tasks:
<UL type=disc>
<LI>Create objects within the container.</li>
<LI>Delete objects from the container.</li>
<LI>Count the number of objects within the container.</li>
<LI>Enumerate the contained objects.</li>
<LI>Access the contained objects.</li>
</UL>
<P>The IIS Admin Objects that can contain other objects can also implement container object properties and methods. These objects accomplish this by supporting the <B>IADsContainer</B> interface, the <B>_NewEnum </B>and <B>Count</B> properties, and the <B>GetObject</B>, <B>Create</B>, and <B>Delete</B> methods. IIS Admin Objects also support the basic <B>IADs</B> interface properties and methods, and any IIS-specific or extended properties and methods.</P>
<P>For more information, see the <A HREF="/iishelp/iis/htm/asp/adsi0aat.htm">ADSI Reference</A>.</P>
<hr class="iis" size="1">
<p align="center"><em><a href="../../../common/colegal.htm">&copy; 1997-2001 Microsoft Corporation. All rights reserved.</a></em></p>
</BODY>
</HTML>