RemoteSettings.GetValueAsync<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. Must be called after Start.
public:
generic <typename T>
virtual System::Threading::Tasks::Task<T> ^ GetValueAsync(System::String ^ collectionPath, System::String ^ key, T defaultValue);
public System.Threading.Tasks.Task<T> GetValueAsync<T> (string collectionPath, string key, T defaultValue);
abstract member GetValueAsync : string * string * 'T -> System.Threading.Tasks.Task<'T>
override this.GetValueAsync : string * string * 'T -> System.Threading.Tasks.Task<'T>
Public Function GetValueAsync(Of T) (collectionPath As String, key As String, defaultValue As T) As Task(Of 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
Task<T>
Remote setting value if it exists, otherwise defaultValue