ArcGIS Runtime SDK for WPF - Library Reference
QueryLegendInfos Method
See Also 
ESRI.ArcGIS.Client Namespace > GraphicsLayer Class : 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 the layer.

Syntax

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

Remarks

The returned result is encapsulated in a LayerLegendInfo object. This object contains a collection of legenditems.

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, Windows 8

See Also

© ESRI, Inc. All Rights Reserved.