Edit

Share via


ImageCache.InitializeTypeAsync Method

Definition

Overloads

InitializeTypeAsync(Stream, List<KeyValuePair<String,Object>>)

Cache specific hooks to process items from HTTP response

InitializeTypeAsync(StorageFile, List<KeyValuePair<String,Object>>)

Cache specific hooks to process items from HTTP response

InitializeTypeAsync(Stream, List<KeyValuePair<String,Object>>)

Cache specific hooks to process items from HTTP response

protected override System.Threading.Tasks.Task<Windows.UI.Xaml.Media.Imaging.BitmapImage> InitializeTypeAsync (System.IO.Stream stream, System.Collections.Generic.List<System.Collections.Generic.KeyValuePair<string,object>> initializerKeyValues = default);
override this.InitializeTypeAsync : System.IO.Stream * System.Collections.Generic.List<System.Collections.Generic.KeyValuePair<string, obj>> -> System.Threading.Tasks.Task<Windows.UI.Xaml.Media.Imaging.BitmapImage>
Protected Overrides Function InitializeTypeAsync (stream As Stream, Optional initializerKeyValues As List(Of KeyValuePair(Of String, Object)) = Nothing) As Task(Of BitmapImage)

Parameters

stream
Stream

input stream

initializerKeyValues
List<KeyValuePair<String,Object>>

key value pairs used when initializing instance of generic type

Returns

Task<Windows.UI.Xaml.Media.Imaging.BitmapImage>

awaitable task

Applies to

InitializeTypeAsync(StorageFile, List<KeyValuePair<String,Object>>)

Cache specific hooks to process items from HTTP response

protected override System.Threading.Tasks.Task<Windows.UI.Xaml.Media.Imaging.BitmapImage> InitializeTypeAsync (Windows.Storage.StorageFile baseFile, System.Collections.Generic.List<System.Collections.Generic.KeyValuePair<string,object>> initializerKeyValues = default);
override this.InitializeTypeAsync : Windows.Storage.StorageFile * System.Collections.Generic.List<System.Collections.Generic.KeyValuePair<string, obj>> -> System.Threading.Tasks.Task<Windows.UI.Xaml.Media.Imaging.BitmapImage>
Protected Overrides Function InitializeTypeAsync (baseFile As StorageFile, Optional initializerKeyValues As List(Of KeyValuePair(Of String, Object)) = Nothing) As Task(Of BitmapImage)

Parameters

baseFile
Windows.Storage.StorageFile

storage file

initializerKeyValues
List<KeyValuePair<String,Object>>

key value pairs used when initializing instance of generic type

Returns

Task<Windows.UI.Xaml.Media.Imaging.BitmapImage>

awaitable task

Applies to