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
-
objectTempDirectoryNode
- 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
pathstringThe 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
Exceptions
- IOException
The directory could not be inspected.
- UnauthorizedAccessException
Read access to the directory is not permitted.
Methods
Equals(CacheNode?)
public override bool Equals(CacheNode? other)
Parameters
otherCacheNode
Returns
Exceptions
- IOException
The directory could not be inspected.
- UnauthorizedAccessException
Read access to the directory is not permitted.
GetHashCode()
public override int GetHashCode()
Returns
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
feedCacheIFeedCacheimplementationStoreIImplementationStore
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.