ArcGIS Runtime SDK for WPF - Library Reference
LocalMapService Constructor(String)
See Also 
ESRI.ArcGIS.Client.Local Namespace > LocalMapService Class > LocalMapService Constructor : LocalMapService Constructor(String)

path
A string representing the path to an ArcGIS Map Package (.MPK) either located on disk on on ArcGIS.com.
Initializes a new instance of the LocalMapService class based on the provided path property.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal path As String _
)
C# 
public LocalMapService( 
   string path
)

Remarks

This overloaded constructor provides a more convenient option for instantiating a new LocalMapService object and setting the path property in one call.

Once the path property has been set, the StartAsync method can be called to start the LocalMapService.

Parameters

path
A string representing the path to an ArcGIS Map Package (.MPK) either located on disk on on ArcGIS.com.

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.