AssemblyBuilder.GetTempFilePhysicalPath Method (String)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Generates a temporary file path.

Namespace:   System.Web.Compilation
Assembly:  System.Web (in System.Web.dll)

public string GetTempFilePhysicalPath(
	string extension


Type: System.String

The file extension to use for the temporary file.

Return Value

Type: System.String

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

A BuildProvider implementation calls the GetTempFilePhysicalPath method to get a temporary file path that is deleted automatically after the assembly is compiled.

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

.NET Framework
Available since 2.0
Return to top