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

webmap
The webmap.
arcGISPortal
The portal.
bingKey
The bing key.
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, _
   Optional ByVal bingKey As String _
) As Task(Of WebMapViewModel)
C# 
public static Task<WebMapViewModel> LoadAsync( 
   WebMap webmap,
   ArcGISPortal arcGISPortal,
   string bingKey
)

Parameters

webmap
The webmap.
arcGISPortal
The portal.
bingKey
The bing key.

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.