语言

SimpleObjectMemory.TryGetValue(String, Object) 方法

定义

试着从某条路径中获得价值。

public bool TryGetValue(string path, out object value);
abstract member TryGetValue : string * obj -> bool
override this.TryGetValue : string * obj -> bool
Public Function TryGetValue (path As String, ByRef value As Object) As Boolean

参数

path
String

既定路径。

value
Object

已确定的价值。

返回

如果内存包含具有指定键的元素,则为真;否则,就是假的。

实现

适用于