Mono Class Library: System.IO.Path Overview | Members

System.IO.Path.GetTempPath Method

Returns the path information of a temporary directory. [Edit]

public static string GetTempPath ()

Returns

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.

[Edit]

Permissions

TypeReason
System.Security.Permissions.EnvironmentPermission [Edit] Requires unrestricted access to environment variables. See System.Security.Permissions.PermissionState.Unrestricted.

Exceptions

TypeReason
System.Security.SecurityExceptionThe caller does not have the required permission. [Edit]

Remarks

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. [Edit]

Requirements

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0