ESRI banner

IClientObject.OpenImageService method

Applies To: IClientObject

This function is used to open an Image Service as defined by the fully qualified source and optionally the current service connection properties.

[Visual Basic 6.0]

variable = object.OpenImageService(imageServiceSource, serviceConnectionProperties)

Arguments

[in] imageServiceSource

String. It can be the service name or the file path of that service.

e.g.:

“ImageService://hawkings:10000/ Dxb_Tif”

OR

“C:\Temp\TestImageService.ISRef”

 

[in] serviceConnectionProperties

Optional String. An XML string which describes the additional properties about the service that is to be opened.

For more details view the XML schema available at:

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

Return Value

CImageService 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

  Dim cService As CImageService

  Set cService = client.OpenImageService("ImageService://hawkings:10000/Dxb_Tif", "")

 

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.