RemoteSettings.TryGetValue<T>(String, String, T) 方法

定义

获取远程设置值(如果存在)。

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)

返回

Boolean

如果值存在,则为 True; 否则为 false。

实现

适用于