| 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 ) | |
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.
Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8