Creates an empty temporary file in the local cache's temp directory.

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

Syntax

C#
public static string NewLocalCacheFileName(
	Session session
)
Visual Basic
Public Shared Function NewLocalCacheFileName ( _
	session As Session _
) As String

Parameters

session
Type: ININ.IceLib.Connection..::..Session
The session.

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.

This requires that the Windows user executing the application have a loaded profile.

Exceptions

ExceptionCondition
System.IO..::..IOExceptionThe file could not be created. Check the temporary directory permissions, and verify that there is enough free disk space.
System..::..ArgumentNullExceptionsession is nullNothingnullptra null reference (Nothing in Visual Basic).

Version Information

Supported for IC Server version 2015 R1 and beyond.
For 4.0, supported for IC Server version 4.0 SU 5 and beyond.

See Also