RemoteSettings.TryGetValue<T>(String, String, T) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取远程设置值(如果存在)。
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
类型参数
- T
参数
- collectionPath
- String
远程设置集合的路径,格式为 My\Custom\Path
- key
- String
远程设置的密钥
- value
- T
值或默认 (T)
返回
如果值存在,则为 True; 否则为 false。