DexFileGetTempDirectory()

The DexFileGetTempDirectory() function retrieves the complete path to the local temporary folder for the current user.

Syntax

DexFileGetTempDirectory()

Parameters

• None

Return value

A string containing the complete path to the local temporary folder. The path is in native format.

Comments

For the web client, the path to the Temp folder for the user's web client session on the session host server is retrieved. This is the only location that an integrating application can write a file to for the web client.

Examples

The following C# example retrieves the location of the temporary folder for the current user and displays the location in a modal dialog box.

string directory;

directory = Dynamics.Forms.SyVisualStudioHelper.Functions.
DexFileGetTempDirectory.Invoke();

Dynamics.Forms.SyVisualStudioHelper.Functions.DexWarning.
Invoke(directory);

The following Visual Basic example retrieves the location of the temporary folder for the current user and displays the location in a modal dialog box.

Dim directory As String

directory = Dynamics.Forms.SyVisualStudioHelper.Functions _
.DexFileGetTempDirectory.Invoke()

Dynamics.Forms.SyVisualStudioHelper.Functions.DexWarning.Invoke(directory)