ArcGIS API for WPF - Library Reference
QueryLegendInfos Method
See Also  Send comments on this topic
ESRI.ArcGIS.Client.Toolkit.DataSources Namespace > KmlLayer Class : QueryLegendInfos Method

callback
The method to call on completion.
errorCallback
The method to call in the event of an error (cant' happen with a group layer).
Queries for the legend infos of the layer.

Syntax

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

Parameters

callback
The method to call on completion.
errorCallback
The method to call in the event of an error (cant' happen with a group layer).

Remarks

The returned result is encapsulated in a ESRI.ArcGIS.Client.LayerLegendInfo object. A group layer returns only one item describing the group layer (the legends of the sublayers are not returned by this method)

Requirements

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

See Also

© ESRI, Inc. All Rights Reserved.