UtilFileGetTempFileName(DirectoryInfo, String) Method
Creates a uniquely named, zero-byte temporary file on the specified folder with the specified file extension
and returns the file path.
Namespace: DevCase.Core.IO.FileSystemAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static string GetTempFileName(
DirectoryInfo dir,
string extension
)
Public Shared Function GetTempFileName (
dir As DirectoryInfo,
extension As String
) As String
Dim dir As DirectoryInfo
Dim extension As String
Dim returnValue As String
returnValue = UtilFile.GetTempFileName(dir,
extension)
public:
static String^ GetTempFileName(
DirectoryInfo^ dir,
String^ extension
)
static member GetTempFileName :
dir : DirectoryInfo *
extension : string -> string
No code example is currently available or this language may not be supported.
- dir DirectoryInfo
-
The folder where to create the temporary file.
- extension String
-
The file extension to assign to the temporary file.
String
The full path of the temporary file.
This is a code example.
No code example is currently available or this language may not be supported.
Dim tmpFile As String = GetTempFileName(New DirectoryInfo("C:\Folder\"), "txt")
Console.WriteLine(tmpFile)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
ArgumentNullException
|
extension
|