ArcGIS Runtime SDK for WPF - Library Reference
GetLayerAsync(WebMapLayer) Method
See Also 
ESRI.ArcGIS.Client.WebMap Namespace > WebMapViewModel Class > GetLayerAsync Method : GetLayerAsync(WebMapLayer) Method

webMapLayer
The webmap layer.
Helper method creating asynchronously a layer from a webmap layer.

Syntax

Visual Basic (Declaration) 
Public Overloads Function GetLayerAsync( _
   ByVal webMapLayer As WebMapLayer _
) As Task(Of Layer)
C# 
public Task<Layer> GetLayerAsync( 
   WebMapLayer webMapLayer
)

Remarks

The layer is not added to the OperationalLayers or to the Basemap.Layers collections. To add a WebmapLayer to thse collections, use directly the Add method.

Parameters

webMapLayer
The webmap layer.

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.