ITeamFoundationRegistryService.GetValue<T> 方法 (TeamFoundationRequestContext, String, Boolean, T)

GetValue&amp;lt;T&amp;gt;() 将检索指定路径的值。 然后它将转换为 T. 指定的类型。

命名空间:  Microsoft.TeamFoundation.Framework.Server
程序集:  Microsoft.TeamFoundation.Framework.Server(在 Microsoft.TeamFoundation.Framework.Server.dll 中)

语法

声明
Function GetValue(Of T) ( _
    requestContext As TeamFoundationRequestContext, _
    path As String, _
    fallThru As Boolean, _
    defaultValue As T _
) As T
T GetValue<T>(
    TeamFoundationRequestContext requestContext,
    string path,
    bool fallThru,
    T defaultValue
)

类型参数

  • T
    注册表值的类型

参数

  • path
    类型:System.String
    读取设置的注册表的位置。
  • fallThru
    类型:System.Boolean
    如果没有找到该值,并且可读取它的 fallthru 项从此处。
  • defaultValue
    类型:T
    如果设置不存在此默认返回值

返回值

类型:T
注册表值转换为指定的类型

.NET Framework 安全性

请参阅

参考

ITeamFoundationRegistryService 接口

GetValue 重载

Microsoft.TeamFoundation.Framework.Server 命名空间