Visual Basic (Declaration) | |
---|---|
Public ReadOnly Property ServiceDataType As String |
C# | |
---|---|
public string ServiceDataType {get;} |
The string values that can be returned are:
- esriImageServiceDataTypeGeneric
- esriImageServiceDataTypeRGB
- esriImageServiceDataTypeElevation
- esriImageServiceDataTypeThematic
- esriImageServiceDataTypeProcessed
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.NET | Copy 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 |
Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8