ArcGIS Runtime SDK for WPF - Library Reference
InitializeWithLocalServiceAsync Method
See Also 
ESRI.ArcGIS.Client.Tasks Namespace > FindTaskLocalExtensions Class : InitializeWithLocalServiceAsync Method

findTask
The Find Task
path
A string representing the path to an ArcGIS Map Package (.MPK) or a Map Service Definition (.MSD) either located on disk or on ArcGIS.com
callback
An Action delegate to support inline event handling.
Asynchronously initializes the supplied FindTask instance with a ESRI.ArcGIS.Client.Local.LocalMapService.UrlMapService based on the provided path to a Map Package.

Syntax

Visual Basic (Declaration) 
Public Shared Sub InitializeWithLocalServiceAsync( _
   ByVal findTask As FindTask, _
   ByVal path As String, _
   ByVal callback As Action(Of LocalMapService) _
) 
C# 
public static void InitializeWithLocalServiceAsync( 
   FindTask findTask,
   string path,
   Action<LocalMapService> callback
)

Remarks

This method will reuse an existing local map service if one exists with the same properties or start a new one if none are found on the runtime local server.

Parameters

findTask
The Find Task
path
A string representing the path to an ArcGIS Map Package (.MPK) or a Map Service Definition (.MSD) either located on disk or on ArcGIS.com
callback
An Action delegate to support inline event handling.

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.