Share via


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

Definition

Gets remote setting value if one exists.

public:
generic <typename T>
 virtual 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
override this.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

Path to the remote setting collection in the form My\Custom\Path

key
String

Key of the Remote Setting

value
T

The value or default(T)

Returns

True if value exists, false if it does not

Implements

Applies to