Property TempPath
TempPath
Gets or sets the temporary data path for the runtime deployment used by this application.
Declaration
public static string TempPath { get; set; }
Property Value
Type | Description |
---|---|
System.String | A System.String representing the path to a folder on disk. |
Remarks
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 an System.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.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET | 100.13 - 200.5 |
.NET Windows | 100.13 - 200.5 |
.NET Android | 200.0 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.0 - 200.5 |