Share via


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

GetValue&amp;lt;T&amp;gt;() will retrieve the value for the specified path. It will then be converted to the type specified by T.

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
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
)
generic<typename T>
T GetValue(
    TeamFoundationRequestContext^ requestContext, 
    String^ path, 
    bool fallThru, 
    T defaultValue
)
abstract GetValue : 
        requestContext:TeamFoundationRequestContext * 
        path:string * 
        fallThru:bool * 
        defaultValue:'T -> 'T 
JScript does not support generic types or methods.

Type Parameters

  • T
    Type of the registry value

Parameters

  • path
    Type: System.String

    Location in the registry to read the setting from

  • fallThru
    Type: System.Boolean

    If the value is not found and a fallthru hive is available read it from there.

  • defaultValue
    Type: T

    If the setting does not exist this default value is returned

Return Value

Type: T
The registry value converted to the type specified

.NET Framework Security

See Also

Reference

ITeamFoundationRegistryService Interface

GetValue Overload

Microsoft.TeamFoundation.Framework.Server Namespace