Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 Overridable Function GetValue(Of T) ( _
requestContext As TeamFoundationRequestContext, _
path As String, _
defaultValue As T _
) As T
public virtual T GetValue<T>(
TeamFoundationRequestContext requestContext,
string path,
T defaultValue
)
public:
generic<typename T>
virtual T GetValue(
TeamFoundationRequestContext^ requestContext,
String^ path,
T defaultValue
)
abstract GetValue :
requestContext:TeamFoundationRequestContext *
path:string *
defaultValue:'T -> 'T
override GetValue :
requestContext:TeamFoundationRequestContext *
path:string *
defaultValue:'T -> 'T
JScript does not support generic types or methods.
Type Parameters
- T
Type of the registry value.
Parameters
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextThe request context.
path
Type: System.StringLocation in the registry to read the setting from.
defaultValue
Type: TIf 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.