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

portalItem
callback
Creates asynchronously a WebMapLayer from an ArcGIS Portal item. The portal item type must by a ESRI.ArcGIS.Client.Portal.ItemType.MapService or ESRI.ArcGIS.Client.Portal.ItemType.FeatureService.

Syntax

Visual Basic (Declaration) 
Public Shared Sub FromPortalItemAsync( _
   ByVal portalItem As ArcGISPortalItem, _
   ByVal callback As Action(Of WebMapLayer,Exception) _
) 
C# 
public static void FromPortalItemAsync( 
   ArcGISPortalItem portalItem,
   Action<WebMapLayer,Exception> callback
)

Parameters

portalItem
callback

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.