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

GetValue<T>()中检索指定路径的值。

然后它将转换为T.指定的类型。

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

语法

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

类型参数

  • T
    注册表值的类型。

参数

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

返回值

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

.NET Framework 安全性

请参见

参考

TeamFoundationBaseRegistryService 类

GetValue 重载

Microsoft.TeamFoundation.Framework.Server 命名空间