Partager via


TeamFoundationBaseRegistryService.GetValue<T> Method (TeamFoundationRequestContext, String)

Retrieves the value for the specified path, 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
Public Function GetValue(Of T) ( _
    requestContext As TeamFoundationRequestContext, _
    path As String _
) As T
public T GetValue<T>(
    TeamFoundationRequestContext requestContext,
    string path
)
public:
generic<typename T>
T GetValue(
    TeamFoundationRequestContext^ requestContext, 
    String^ path
)
member GetValue : 
        requestContext:TeamFoundationRequestContext * 
        path:string -> '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.

Return Value

Type: T
The registry value converted to the type specified

.NET Framework Security

See Also

Reference

TeamFoundationBaseRegistryService Class

GetValue Overload

Microsoft.TeamFoundation.Framework.Server Namespace