RemoteSettings.GetValue<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 a remote setting value that is updated with both Targeted Notifications backend and RemoteControl file. This does not return the most up-to-date setting, but the value of whatever RemoteSettings has processed so far.
public:
generic <typename T>
virtual T GetValue(System::String ^ collectionPath, System::String ^ key, T defaultValue);
public T GetValue<T> (string collectionPath, string key, T defaultValue);
abstract member GetValue : string * string * 'T -> 'T
override this.GetValue : string * string * 'T -> 'T
Public Function GetValue(Of T) (collectionPath As String, key As String, defaultValue As T) As T
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
- defaultValue
- T
Value to return if remote setting does not exist
Returns
Remote setting value if it exists, otherwise defaultValue