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

webmap
The webmap.
arcGISPortal
The portal.
cancellationToken
The cancellation token.
bingKey
The bing key.
proxyUrl
URL to proxy the requests through when necessary.
WebMapViewModel factory instantiating a WebMapViewModel from a WebMap asynchronously.

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Function LoadAsync( _
   ByVal webmap As WebMap, _
   ByVal arcGISPortal As ArcGISPortal, _
   ByVal cancellationToken As CancellationToken, _
   Optional ByVal bingKey As String, _
   Optional ByVal proxyUrl As String _
) As Task(Of WebMapViewModel)

Parameters

webmap
The webmap.
arcGISPortal
The portal.
cancellationToken
The cancellation token.
bingKey
The bing key.
proxyUrl
URL to proxy the requests through when necessary.

Exceptions

ExceptionDescription
System.ArgumentNullExceptionwebmap

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.