System.Web.Compilation.AssemblyBuilder.GetTempFilePhysicalPath Method

Generates a temporary file path.

Syntax

public string GetTempFilePhysicalPath (string extension)

Parameters

extension
The file extension to use for the temporary file.

Returns

A path to a temporary file, with the specified file extension.

Remarks

A System.Web.Compilation.BuildProvider implementation calls the AssemblyBuilder.GetTempFilePhysicalPath(string) method to get a temporary file path that is deleted automatically after the assembly is compiled.

The AssemblyBuilder.GetTempFilePhysicalPath(string) method generates a unique temporary file path, but does not create the file.

Requirements

Namespace: System.Web.Compilation
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0