Click or drag to resize

ArcGISRuntimeEnvironmentTempPath Property

Gets or sets the temporary data path for the runtime deployment used by this application.

Namespace:  Esri.ArcGISRuntime
Assembly:  Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version:
public static string TempPath { get; set; }

Property Value

Type: String
A String representing the path to a folder on disk.

Any data created by the runtime deployment which is temporary and does not need to be persisted between application sessions will be written to the folder specified by this property for the lifetime of your application. To override the default, 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 a InvalidOperationException. To ensure the files in the folder specified by this property will be automatically deleted you should call the ShutdownAsync method on the LocalServer. However, if any problems are encountered during execution some files may be left in this folder. These are not essential to future usage of the runtime deployment and can safely be deleted during the shutdown phase of your application.

The default value for this property is: "C:\Users\{UserName}\AppData\Local\Temp". The default location will be shared by any other runtime deployment on the local machine which also uses the default location and should therefore be set if you require that the temporary data be differentiated from that created by another runtime deployment.

See Also