IImageService.SaveProperties method

Applies To: IImageService

Saves the current Image Service properties to an ISRef file.

[Visual Basic 6.0]

variable = Object.SaveProperties(isRefFilepath)

Arguments

[in] isRefFilepath

String. Path of the output ISRef file.

Return Value

Boolean that determines the save state.

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\ArcGIS\ImageServer10.0\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”, "")

   If cService Is Nothing Then Exit Sub

 

   Dim isrefPath As String

   isrefPath = "c:\Temp\MyFile.ISRef"

 

   If cService.SaveProperties(isrefPath) = False Then

      MsgBox cService.Status

   End If

End Sub