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

Gets the service description reported by the ArcGISImageServiceLayer.

Syntax

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

Example

XAMLCopy Code
<StackPanel Name="StackPanel1" Height="400" Width="400" Margin="0,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" >
    <esri:Map Background="White" Name="Map1" Height="200" Width="400">
    
         <!-- Define an ArcGISImageServiceLayer. -->
         <esri:ArcGISImageServiceLayer 
              Url="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Portland/CascadeLandsat/ImageServer" />
              
    </esri:Map>
    
    <!-- ServiceDescription Property (Read Only). -->
    <TextBlock Height="22" Name="TextBlock_ServiceDescription" Text="{Binding ElementName=Map1, Path=Layers[0].ServiceDescription}" />
</StackPanel>
C#Copy Code
private void ArcGISImageServiceLayer_Initialized(object sender, System.EventArgs e)
{
    // The myArcGISImageServiceLayer (an ArcGISImageServiceLayer object) and TextBlock_ServiceDescription
    // (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];
    
    // ServiceDescription Property (Read Only).
    TextBlock_ServiceDescription.Text = myArcGISImageServiceLayer.ServiceDescription;
}
VB.NETCopy Code
Private Sub ArcGISImageServiceLayer_Initialized(ByVal sender As System.Object, ByVal e As System.EventArgs)
    ' The myArcGISImageServiceLayer (an ArcGISImageServiceLayer object) and TextBlock_ServiceDescription
    ' (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)
    
    ' ServiceDescription Property (Read Only).
    TextBlock_ServiceDescription.Text = myArcGISImageServiceLayer.ServiceDescription
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.