Table of Contents

Class TempDirectoryNode

Namespace
ZeroInstall.Store.ViewModel
Assembly
ZeroInstall.Store.dll

Models information about a temporary directory in an IImplementationStore for display in a UI.

public sealed class TempDirectoryNode : CacheNode, INamed, IEquatable<CacheNode>
Inheritance
TempDirectoryNode
Implements
Inherited Members

Constructors

TempDirectoryNode(string)

Models information about a temporary directory in an IImplementationStore for display in a UI.

public TempDirectoryNode(string path)

Parameters

path string

The path of the directory.

Exceptions

IOException

The directory could not be inspected.

UnauthorizedAccessException

Read access to the directory is not permitted.

Properties

Name

The full name of the node used for tree hierarchies.

public override string Name { get; set; }

Property Value

string

Exceptions

IOException

The directory could not be inspected.

UnauthorizedAccessException

Read access to the directory is not permitted.

Methods

Equals(CacheNode?)

Indicates whether the current object is equal to another object of the same type.

public override bool Equals(CacheNode? other)

Parameters

other CacheNode

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Exceptions

IOException

The directory could not be inspected.

UnauthorizedAccessException

Read access to the directory is not permitted.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

Exceptions

IOException

The directory could not be inspected.

UnauthorizedAccessException

Read access to the directory is not permitted.

Remove(IFeedCache?, IImplementationStore?)

Removes this temporary directory from the implementationStore if provided.

public override void Remove(IFeedCache? feedCache = null, IImplementationStore? implementationStore = null)

Parameters

feedCache IFeedCache
implementationStore IImplementationStore

Exceptions

DirectoryNotFoundException

The directory could be found in the store.

IOException

The directory could not be deleted.

UnauthorizedAccessException

Write access to the store is not permitted.