C# 클래스 ModernApp4Me.WP8.Download.ImageCache

Defines the base clase for image cache implementations.
파일 보기 프로젝트 열기: smartnsoft/ModernApp4Me 1 사용 예제들

공개 메소드들

메소드 설명
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