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

webMapLayer
The webmap layer.
cancellationToken
The cancellation token.
Helper method creating asynchronously a layer from a webmap layer.

Syntax

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

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.
cancellationToken
The cancellation token.

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.