C# Класс ModernApp4Me.WP8.Download.ImageCache

Defines the base clase for image cache implementations.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Clear ( ) : void

Deletes all the images from the cache. This method can block the current thread for a long time; it is advised to call it from a background thread.

Get ( Uri imageUri ) : System.Windows.Media.ImageSource

Retrieves the source for the image with the specified URI from the cache, downloading it if needed.

Get ( string imageUriString ) : System.Windows.Media.ImageSource

Retrieves the source for the image with the specified URI from the cache, downloading it if needed.

ToString ( ) : string

Overrides object.ToString().

Защищенные методы

Метод Описание
GetInternal ( Uri imageUri ) : System.Windows.Media.ImageSource

The actual implementation of ImageCache.Get.

ImageCache ( string name ) : System

Initializes a new ImageCache instance.

Описание методов

Clear() публичный абстрактный Метод

Deletes all the images from the cache. This method can block the current thread for a long time; it is advised to call it from a background thread.
public abstract Clear ( ) : void
Результат void

Get() публичный Метод

Retrieves the source for the image with the specified URI from the cache, downloading it if needed.
The method is not called in the UI thread.
public Get ( Uri imageUri ) : System.Windows.Media.ImageSource
imageUri System.Uri The URI of the image. Must be an absolute URI.
Результат System.Windows.Media.ImageSource

Get() публичный Метод

Retrieves the source for the image with the specified URI from the cache, downloading it if needed.
The method is not called in the UI thread.
public Get ( string imageUriString ) : System.Windows.Media.ImageSource
imageUriString string The URI of the image. Must be an absolute URI.
Результат System.Windows.Media.ImageSource

GetInternal() защищенный абстрактный Метод

The actual implementation of ImageCache.Get.
protected abstract GetInternal ( Uri imageUri ) : System.Windows.Media.ImageSource
imageUri System.Uri
Результат System.Windows.Media.ImageSource

ImageCache() защищенный Метод

Initializes a new ImageCache instance.
protected ImageCache ( string name ) : System
name string
Результат System

ToString() публичный Метод

Overrides object.ToString().
public ToString ( ) : string
Результат string