IContextAccessor.GetIntValue 方法

检索与指定键关联的值。

命名空间:  Microsoft.VisualStudio.TestTools.Execution
程序集:  Microsoft.VisualStudio.QualityTools.ExecutionCommon(在 Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll 中)

语法

声明
Function GetIntValue ( _
    key As String _
) As Integer
int GetIntValue(
    string key
)
int GetIntValue(
    String^ key
)
abstract GetIntValue : 
        key:string -> int
function GetIntValue(
    key : String
) : int

参数

  • key
    类型:String

    一个 string,表示要检索的元素的键。

返回值

类型:Int32
检索到的 int 值。

.NET Framework 安全性

请参阅

参考

IContextAccessor 接口

Microsoft.VisualStudio.TestTools.Execution 命名空间