Returns the path information of a temporary directory.
A string containing the full directory name of a temporary directory.
The information returned by this method is implementation-specific. Platforms that do not support this feature return string.Empty.
Type Reason System.Security.Permissions.EnvironmentPermission Requires unrestricted access to environment variables. See System.Security.Permissions.PermissionState.Unrestricted.
Type Reason System.Security.SecurityException The caller does not have the required permission.
On platforms that provide a mechanism for users to discover this information, (for example by checking an environment variable), implementations of the CLI return the same information as the implementation-specific mechanism.
Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0