ICollectionKeyValueStorage.TryGetValue<T>(String, String, T) 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.
Gets current value from storage and indicates if key was found in storage.
public:
generic <typename T>
bool TryGetValue(System::String ^ collectionPath, System::String ^ key, [Runtime::InteropServices::Out] T % value);
public bool TryGetValue<T> (string collectionPath, string key, out T value);
abstract member TryGetValue : string * string * 'T -> bool
Public Function TryGetValue(Of T) (collectionPath As String, key As String, ByRef value As T) As Boolean
Type Parameters
- T
Parameters
- collectionPath
- String
- key
- String
- value
- T
Returns
true if value in storage, default(T) if not in storage