Property AppDataPath
AppDataPath
Gets or sets the application data path for the runtime deployment used by this application.
Declaration
public string AppDataPath { get; set; }
Property Value
Type | Description |
---|---|
System. |
A System. |
Remarks
The folder specified by this property will contain data created by the runtime deployment which should be persisted between application sessions.
The runtime deployment will write all application-related data to the folder specified by this property for the lifetime of the application.
The property must be set each time your application starts but before the Initialize() method is called.
Once the runtime deployment is initialized any attempt to set this property will result in an System.
Any Map Packages (.MPK), Address Locator Packages (.GCPK) or Geoprocessing Packages (.GPK) used by your application in conjunction with the runtime local server are unpacked to this location. You should therefore consider how much space may be required by this folder when setting the property. Packages will be unpacked to "{AppDataPath}\Documents\ArcGIS\Packages". Other data written to the folder specified by this property can be considered internal to the runtime deployment and typically does not require significant disk space.
If not specified, Temp
This property, in conjunction with the Temp
Exceptions
Type | Condition |
---|---|
System. |
AppDataPath cannot be set if the server is not stopped or failed state. |
System. |
Path cannot be empty. |
System. |
Folder location for 'AppDataPath' is not found. |
See Also
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Windows | 100.13 - 200.6 |
.NET Framework | 100.0 - 200.6 |