Zero Install .NET API 2.20.0
ZeroInstall.Store.Icons.IIconStore Interface Reference

Stores icon files downloaded from the web as local files. More...

Inheritance diagram for ZeroInstall.Store.Icons.IIconStore:
ZeroInstall.Store.Icons.IconStore

Public Member Functions

string GetPath (Icon icon)
 Gets a specific icon from this cache. If the icon is missing it will be downloaded. More...
 

Detailed Description

Stores icon files downloaded from the web as local files.

Implementations of this interface are immutable and thread-safe.

Member Function Documentation

◆ GetPath()

string ZeroInstall.Store.Icons.IIconStore.GetPath ( Icon  icon)

Gets a specific icon from this cache. If the icon is missing it will be downloaded.

Parameters
iconThe icon to retrieve.
Returns
The local file path of the cached icon.
Exceptions
OperationCanceledExceptionThe user canceled the task.
IOExceptionA problem occurred while adding the icon to the cache.
UnauthorizedAccessExceptionRead or write access to the cache is not permitted.
WebExceptionA problem occurred while downloading the icon.

Implemented in ZeroInstall.Store.Icons.IconStore.


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