Zero Install .NET API 2.20.0
ZeroInstall.Store.ViewModel.TempDirectoryNode Class Reference

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

Inheritance diagram for ZeroInstall.Store.ViewModel.TempDirectoryNode:
ZeroInstall.Store.ViewModel.StoreNode ZeroInstall.Store.ViewModel.CacheNode NanoByte::Common::INamed

Public Member Functions

 TempDirectoryNode (string path, IImplementationStore implementationStore)
 Creates a new temporary directory node. More...
 
override void Delete (ITaskHandler handler)
 Deletes this temporary directory from the IImplementationStore it is located in. More...
 
- Public Member Functions inherited from ZeroInstall.Store.ViewModel.CacheNode
bool Equals (CacheNode? other)
 
override bool Equals (object? obj)
 
override int GetHashCode ()
 

Properties

override string? Name [getset]
 
override string Path [get]
 
- Properties inherited from ZeroInstall.Store.ViewModel.StoreNode
abstract ? string Path [get]
 The file system path of the element.
 
- Properties inherited from ZeroInstall.Store.ViewModel.CacheNode
abstract string Name [getset]
 The full name of the node used for tree hierarchies.
 
- Properties inherited from NanoByte::Common::INamed
string Name
 

Additional Inherited Members

- Public Attributes inherited from ZeroInstall.Store.ViewModel.CacheNode
int SuffixCounter
 A counter that can be used to prevent naming collisions. More...
 
- Protected Member Functions inherited from ZeroInstall.Store.ViewModel.StoreNode
 StoreNode (IImplementationStore implementationStore)
 Creates a new store node. More...
 
- Protected Attributes inherited from ZeroInstall.Store.ViewModel.StoreNode
readonly IImplementationStore ImplementationStore
 The store containing the element.
 

Detailed Description

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

Constructor & Destructor Documentation

◆ TempDirectoryNode()

ZeroInstall.Store.ViewModel.TempDirectoryNode.TempDirectoryNode ( string  path,
IImplementationStore  implementationStore 
)
inline

Creates a new temporary directory node.

Parameters
pathThe path of the directory in the store.
implementationStoreThe IImplementationStore the directory is located in.
Exceptions
FormatExceptionThe manifest file is not valid.
IOExceptionThe manifest file could not be read.
UnauthorizedAccessExceptionRead access to the file is not permitted.

Member Function Documentation

◆ Delete()

override void ZeroInstall.Store.ViewModel.TempDirectoryNode.Delete ( ITaskHandler  handler)
inlinevirtual

Deletes this temporary directory from the IImplementationStore it is located in.

Parameters
handlerA callback object used when the the user needs to be asked questions or informed about IO tasks.
Exceptions
DirectoryNotFoundExceptionThe directory could be found in the store.
IOExceptionThe directory could not be deleted.
UnauthorizedAccessExceptionWrite access to the store is not permitted.

Implements ZeroInstall.Store.ViewModel.CacheNode.


The documentation for this class was generated from the following file: