InMemoryStorage<T>.GetItem(String, TimeSpan) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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