IDVBCMClient2::cmservernodes
Method Signatures |
|
C\C++ |
HRESULT get_CMServerNodes( long lWait, LPVARIANT *vArrayCMServerNodes) |
VB |
Public Property CMServerNodes( ByVal lWait As Long) As Variant |
This read-only property returns a list of available Campaign Manager Servers on the DeltaV system.
Return Values
S_OK - success
else - failed
Memory Allocation
The caller is responsible for freeing the returned Variant.
Visual Basic Usage Example
Private Sub FindAvailableCMServers()
Dim vCMNodes
Dim strNode As String
Dim i As Integer
' Get a variable for the new interface in 7.2
Dim DVBCMClient2 As IDVBCMClient2
On Error GoTo Handler:
' Get the interface
Set DVBCMClient2 = DVBCMClient.Object
' Use New methods
vCMNodes = DVBCMClient2.CMServerNodes
For i = LBound(vCMNodes) to UBound(vCMNodes)
strNode = vCMNodes(i)
Next i
Exit Sub
Handler:
MsgBox Err.Desciption
End Sub
Parameter Name |
Purpose |
|---|---|
vArrayCMServerNodes |
A pointer to a Variant which will be populated with the names of all Campaign Manager Servers on the DeltaV System. |
lWait |
Optional. Default = 30000. Time to wait for a server resource in milliseconds. |