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. |
A System. |
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 a Invalid
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 6.0 | 100.13 - 100.15 |
.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 |