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 like the ASP GetObject function.
Object
The IIS Admin Object that contains the object. Usually the 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