ESRI banner

IClientObject.Init method

Applies To: IClientObject

This method is used to initialize the Server Connection with the properties specified in the client configuration XML file/string (ISCConfig).

It is required to initialize the client object before accessing any other functions of this object.

[Visual Basic 6.0]

variable = Object.Init(configurationXml)

Arguments

[in] configurationXml

String that represents the ISCConfig XML string or ISCConfig filepath. For more details view the XML schema available at:

[ArcGIS Image Server installation folder]\Developer Kit\XML\ISClient.ISCConfig.XSD

Return Value

Boolean that determines the initialize state of the client object.

Requirements

Platform

32 bit Windows OS (WinXP)

Environment

.NET Framework, COM, ANSI C / C++ Standard compliant

Dependency

ESRI.ImageServer.ISClient.dll (.NET Framework), ISClient.dll (COM/C++), ISClientC.dll (C/C++)

Include

isclientc.h  (ANSI C)

 

Example

[Visual Basic 6.0]

Private Sub Form1_Load()

  Dim client As New CClientObject

  Dim strConfigPath as String

  strConfigPath = "c:\Program Files\Common Files\ESRI\Image Server\XADefs\ISViewer.ISCConfig"

  If client.Init(strConfigPath) = False Then

      MsgBox client.Status

    Exit Sub

  End If

End Sub

 

For a detailed example, please see the ISViewer Sample in VB 6.0 or the Client Application Sample in ANSI C in [ArcGIS Image Server installation folder]\Developer Kit\Client Applications\Samples\ folder.