DialogStateManager.GetBoolValue(String, Boolean) 方法

定义

使用路径表达式从内存中获取布尔值。

public bool GetBoolValue(string pathExpression, bool defaultValue = false);
member this.GetBoolValue : string * bool -> bool
Public Function GetBoolValue (pathExpression As String, Optional defaultValue As Boolean = false) As Boolean

参数

pathExpression
String

路径表达式。

defaultValue
Boolean

如果值不存在,则默认值。

返回

如果 path 无效,则为 Bool 或 null。

适用于