ESRI banner

IImageService.ApplyServiceProperties method

Applies To: IImageService

Applies the properties last set on the Image Service object.

It’s mainly used to see the affect of the properties changed by IServicePropertiesDialog object or the ServiceProperties property.

[Visual Basic 6.0]

variable = Object.ApplyServiceProperties()

Return Value

Boolean that determines the apply 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\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”, "")

  If cService Is Nothing Then Exit Sub

 

  Dim spDialog As ImageServerClient.IServicePropertiesDialog

  Set spDialog = cService.GetServicePropertiesDialog()

 

  If spDialog Is Nothing Then

    MsgBox "The Image Service could not return the properties dialog."

    Exit Sub

  End If

 

  Dim dialogShow As Boolean

  dialogShow = spDialog.ShowPropertiesModalDialog()

  If dialogShow = True Then

    cService.serviceProperties = spDialog.GetUpdatedProperties()

 

    If Not cService.ApplyServiceProperties Then

    MsgBox cService.Status

    End If

  End If

End Sub

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

Related Topics

See also: ServiceProperties , ShowPropertiesModalDialog , GetUpdatedProperties