ArcGIS Runtime SDK for WPF - Library Reference
ServiceDataType Property
See Also  Example
ESRI.ArcGIS.Client Namespace > ArcGISImageServiceLayer Class : ServiceDataType Property

Gets the image service data type for the ArcGISImageServiceLayer.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property ServiceDataType As String
C# 
public string ServiceDataType {get;}

Remarks

The string values that can be returned are:
  • esriImageServiceDataTypeGeneric
  • esriImageServiceDataTypeRGB
  • esriImageServiceDataTypeElevation
  • esriImageServiceDataTypeThematic
  • esriImageServiceDataTypeProcessed

Example

C#Copy Code
private void ArcGISImageServiceLayer_Initialized(object sender, System.EventArgs e)
{
    // The myArcGISImageServiceLayer (an ArcGISImageServiceLayer object) and TextBlock_ServiceDataType
    // (a TextBlock object) were defined previously in the XAML or code-behind.
                
    // Get the first layer in the LayerInfo collection. 
    ArcGISImageServiceLayer myArcGISImageServiceLayer = (ArcGISImageServiceLayer)Map1.Layers[0];
    
    // ServiceDataType Property (Read Only).
    TextBlock_ServiceDataType.Text = myArcGISImageServiceLayer.ServiceDataType;
}
VB.NETCopy Code
Private Sub ArcGISImageServiceLayer_Initialized(ByVal sender As System.Object, ByVal e As System.EventArgs)
    ' The myArcGISImageServiceLayer (an ArcGISImageServiceLayer object) and TextBlock_ServiceDataType
    ' (a TextBlock object) were defined previously in the XAML or code-behind.
    
    ' Get the first layer in the LayerInfo collection. 
    Dim myArcGISImageServiceLayer As ArcGISImageServiceLayer = Map1.Layers.Item(0)
    
    ' ServiceDataType Property (Read Only).
    TextBlock_ServiceDataType.Text = myArcGISImageServiceLayer.ServiceDataType
End Sub

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8

See Also

© ESRI, Inc. All Rights Reserved.