Edit

Share via


InMemoryStorage<T>.GetItem(String, TimeSpan) Method

Definition

Get item from in-memory storage as long as it has not ex

public Microsoft.Toolkit.Uwp.UI.InMemoryStorageItem<T> GetItem (string id, TimeSpan duration);
member this.GetItem : string * TimeSpan -> Microsoft.Toolkit.Uwp.UI.InMemoryStorageItem<'T>
Public Function GetItem (id As String, duration As TimeSpan) As InMemoryStorageItem(Of T)

Parameters

id
String

id of the in-memory storage item

duration
TimeSpan

timespan denoting expiration

Returns

Valid item if not out of date or return null if out of date or item does not exist

Applies to