Constructor LocalMapService
LocalMapService(String)
Initializes a new instance of the LocalMapService class based on the provided path property.
Declaration
public LocalMapService(string path)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | A string representing the path to an ArcGIS Map Package (.MPK) either located on disk on on ArcGIS.com. |
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 StartAsyncTask method can be called to start the LocalMapService.
Exceptions
Type | Condition |
---|---|
ArgumentException | Invalid value specified for path. |
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.0 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |