DialogStateManager.GetIntValue(String, Int32) 方法

定义

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

public int GetIntValue(string pathExpression, int defaultValue = 0);
member this.GetIntValue : string * int -> int
Public Function GetIntValue (pathExpression As String, Optional defaultValue As Integer = 0) As Integer

参数

pathExpression
String

路径表达式。

defaultValue
Int32

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

返回

如果路径无效,则为值或 null。

适用于