Table of Contents

Class TempPath

Namespace
Steeltoe.Common.Utils.IO
Assembly
Steeltoe.Common.Utils.dll

An abstraction of a temporary path, such as a file.

public abstract class TempPath : IDisposable
Inheritance
TempPath
Implements
Derived
Inherited Members

Constructors

TempPath(string)

Initializes a new instance of the TempPath class.

protected TempPath(string prefix = null)

Parameters

prefix string

Temporary path prefix.

Properties

FullPath

Gets the absolute path of the TempPath.

public string FullPath { get; }

Property Value

string

Name

Gets the name of the TempPath.

public string Name { get; }

Property Value

string

Methods

Dispose()

Ensures the temporary path is deleted.

public void Dispose()

Dispose(bool)

Ensures the temporary path is deleted.

protected abstract void Dispose(bool disposing)

Parameters

disposing bool

If disposing.

~TempPath()

Finalizes an instance of the TempPath class.

protected ~TempPath()

InitializePath()

Subclasses should override and perform any path initialization here.

protected virtual void InitializePath()