RemoteSettings.GetValueAsync<T>(String, String, T) Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Obtém um valor de configuração remota, que é atualizado com o back-end de notificações de destino e o arquivo RemoteControl. Deve ser chamado após o início.
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)
Parâmetros de tipo
- T
Parâmetros
- collectionPath
- String
Caminho para a coleção de configurações remotas no formato My\Custom\Path
- key
- String
Chave da configuração remota
- defaultValue
- T
Valor a ser retornado se a configuração remota não existir
Retornos
- Task<T>
Valor de configuração remota se existir, caso contrário, defaultValue