GetObject

The ADSI container object GetObject method accesses an object in a container.

Syntax

Set ChildObj = Object.GetObject(Class, ChildName)

 

Parts
ChildObj
Accesses the object in the same way as the ASP GetObject function does.
Object
Contains an IIS Admin Object, usually as a result of a previous GetObject operation.
Class
Specifies the class of the object to be accessed.
ChildName
The name of the object to be accessed.
Remarks

The ChildObj variable receives a pointer to the object itself, which remains in the container.

Code Example
<% 
  Dim WebServiceObj, ServerObj 
'Get the Web service object, which contains servers. 
  Set WebServiceObj = GetObject("IIS://LocalHost/W3SVC") 
'Access the object for the third Web server. 
  Set ServerObj = WebServiceObj.GetObject("IIsWebServer", "3") 
%> 
 
See Also

Create, Delete, CopyHere, MoveHere