Visual Basic (Declaration) | |
---|---|
Public Overloads Shared Sub InitializeWithLocalServiceAsync( _ ByVal queryTask As QueryTask, _ ByVal path As String, _ ByVal layerId As Integer, _ ByVal callback As Action(Of LocalMapService) _ ) |
C# | |
---|---|
public static void InitializeWithLocalServiceAsync( QueryTask queryTask, string path, int layerId, Action<LocalMapService> callback ) |
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
- queryTask
- The QueryTask to initialize.
- path
- A System.String representing the path to a Map Package from which the local map service will be started.
- layerId
- An integer representing the zero-based index position of a layer within the local map service.
- callback
- An Action delegate to support inline event handling.
Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8