UtilFileGetTempFile(String, String) Method
Creates a uniquely named, zero-byte temporary file on the specified folder with the specified file extension
and returns the file.
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 FileInfo GetTempFile(
string dirPath,
string extension
)
Public Shared Function GetTempFile (
dirPath As String,
extension As String
) As FileInfo
Dim dirPath As String
Dim extension As String
Dim returnValue As FileInfo
returnValue = UtilFile.GetTempFile(dirPath,
extension)
public:
static FileInfo^ GetTempFile(
String^ dirPath,
String^ extension
)
static member GetTempFile :
dirPath : string *
extension : string -> FileInfo
No code example is currently available or this language may not be supported.
- dirPath String
-
The full path of the folder where to create the temporary file.
- extension String
-
The file extension to assign to the temporary file.
FileInfo
The resulting
FileInfo.
This is a code example.
No code example is currently available or this language may not be supported.
Dim tmpFile As FileInfo = GetTempFile("C:\Folder\", "txt")
Console.WriteLine(tmpFile.FullName)
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
|
dirPath or extension
|