DataStoreExtensions Get T Method (IDataStore, String) | Glimpse API Documentation |
Gets an item from store using the key and casts to <T>.
Namespace: Glimpse.Core.ExtensionsAssembly: Glimpse.Core (in Glimpse.Core.dll) Version: 1.0.1.0 (1.0.1)
Syntax
Parameters
- store
- Type: Glimpse.Core.Extensibility IDataStore
The data store instance.
- key
- Type:
System String
The item key.
Type Parameters
- T
- The type of item to retrieve.
Return Value
An item of type T, null or an
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IDataStore. When you use instance method syntax to call this method, omit the first parameter. For more information, see

Exceptions
Exception | Condition |
---|---|
![]() | May throw an invalid cast exception if the IDataStore item and type do not match. |
See Also