ArcGIS API for Silverlight - Library Reference
QueryLegendInfos Method
See Also  Send comments on this topic
ESRI.ArcGIS.Client Namespace > ILegendSupport Interface : QueryLegendInfos Method

callback
The method to call on completion.
errorCallback
The method to call in the event of an error.
Queries for the legend infos of a layer.

Syntax

Visual Basic (Declaration) 
Sub QueryLegendInfos( _
   ByVal callback As Action(Of LayerLegendInfo), _
   ByVal errorCallback As Action(Of Exception) _
) 
C# 
void QueryLegendInfos( 
   Action<LayerLegendInfo> callback,
   Action<Exception> errorCallback
)

Remarks

The returned result is encapsulated in a LayerLegendInfo object. This object represents the legend of the map service layer and can contains a collection of LayerLegendInfos and/or a collection of LegendItemInfos.

Parameters

callback
The method to call on completion.
errorCallback
The method to call in the event of an error.

Requirements

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

See Also

© ESRI, Inc. All Rights Reserved.