IADsService Property: Dependencies

Property Name
Dependencies

Property Type
Variant

Description
Gets and sets an array of service names or load order group names. These services must be started in order for this service to start.

Example

Dim ser As IADsService
Dim varArray As Variant
'Get the service object
Set ser = GetObject("NTDS://MSFT/MOON/Messenger")
'Get the dependencies list
varArray = ser.Dependencies
'print the list if any
For Each Item In varArray
Debug.Print Item
Next Item
'get the new list
varArray = Array("Service:RPCSS")
'Set the dependencies list
ser.Dependencies = varArray
ser.SetInfo

 

See Also: