ITempFiles Interface

Provides access to temporary files and directories.

Definition

Namespace: SMath.Manager
Assembly: SMath.Manager (in SMath.Manager.dll) Version: 1.74.9654.0
C#
public interface ITempFiles

Methods

NewTempDirectory

Creates a new empty temporary directory inside temp subdirectory of SettingsDirectory.

The temporary directory will be deleted when the object which owns ITempFiles (for example, ISessionProfile) is disposed. The directory may also be deleted earlier by the caller code.

  Note

Directories which are created by NewTempDirectory(Guid, String) are not remembered by ITempFiles or its owner object, i.e., a new directory is created on each call and the caller code is responsible for storing the returned directory path.

NewTempFilePath

Creates a new unique name for a temporary file inside temp subdirectory of SettingsDirectory.

If the temporary file is created by the caller code then it will be deleted when the object which owns ITempFiles (for example, ISessionProfile) is disposed. The file may also be deleted earlier by the caller code.

  Note

File names which are created by NewTempFilePath(Guid, String, String) are not remembered by ITempFiles or its owner object, i.e., a new file name is generated on each call and the caller code is responsible for storing the returned file path.

See Also