ArcGIS API for WPF - Library Reference
ServiceDataType Property
See Also  Example Send comments on this topic
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;}

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 = (ArcGISDynamicMapServiceLayer)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

Remarks

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

Requirements

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

See Also

© ESRI, Inc. All Rights Reserved.