Creates an empty temporary file in the local temp directory.

Namespace: ININ.IceLib.Connection
Assembly: ININ.IceLib (in ININ.IceLib.dll) Version: 0.0.0.0 (22.3.0.218)

Syntax

C#
public static string NewLocalFileName()
Visual Basic
Public Shared Function NewLocalFileName As String

Return Value

The full path to the created temporary file.

Remarks

NOTE: The returned file name has been created with zero size. Do not attempt to create a new file with the same name, as it will fail.

If access to the Windows temporary folder is not allowed, use NewLocalCacheFileName(Session) instead, to use the local IceLib cache folder. Note that this would require that the Windows user executing the application has a loaded profile.

Exceptions

ExceptionCondition
System.IO..::..IOExceptionThe file could not be created. Check the TMP, TEMP, and USERPROFILE environment variables, the temporary directory permissions, and verify that there is enough free disk space.

Version Information

Supported for IC Server version 2015 R1 and beyond.
For 4.0, supported for IC Server version 4.0 GA and beyond.
For 3.0, supported for IC Server version 3.0 GA and beyond.

See Also