CimObject.GetObject (method)

Obsolete Replaced by a GefObject
Syntax CimObject.GetObject( index)CimObject.GetObject(name$)
Description Returns a CimObject object representing the child object with the specified index or name.
Comments The index parameter is an Integer specifying the index of the child object. The name$ parameter is a String specifying the name of the child object.
Example This example loops through all the children of an object.
DimObj As CimObjectDim Child As CimObjectSet Obj = CimGetScriptOwner()Max% = Obj.ObjectCount - 1For Index% = 0 To Max%????Set Child = Obj.GetObject(Index%)Next IndexThis example gets the child object named "Tank10".Dim Obj As CimObjectDim Tank As CimObjectSet Obj = cimEvent.TriggerObject
Set Tank = Obj.GetObject("Tank10")