IContextAccessor.GetDoubleValue 方法

检索与指定键关联的值。

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

语法

声明
Function GetDoubleValue ( _
    key As String _
) As Double
double GetDoubleValue(
    string key
)
double GetDoubleValue(
    String^ key
)
abstract GetDoubleValue : 
        key:string -> float
function GetDoubleValue(
    key : String
) : double

参数

  • key
    类型:String

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

返回值

类型:Double
检索到的 double 值。

.NET Framework 安全性

请参阅

参考

IContextAccessor 接口

Microsoft.VisualStudio.TestTools.Execution 命名空间