Sdílet prostřednictvím


ICollectionKeyValueStorage.TryGetValue<T>(String, String, T) Method

Definition

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

Applies to