RegistryEntryCollection.GetValueFromPath<T> Method

Get a value from an entry with the provided path. If the path does not exist, returns the default.

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

Syntax

'Declaration
Public Function GetValueFromPath(Of T) ( _
    path As String, _
    defaultValue As T _
) As T
public T GetValueFromPath<T>(
    string path,
    T defaultValue
)
public:
generic<typename T>
T GetValueFromPath(
    String^ path, 
    T defaultValue
)
member GetValueFromPath : 
        path:string * 
        defaultValue:'T -> 'T 
JScript does not support generic types or methods.

Type Parameters

  • T

Parameters

  • defaultValue
    Type: T

Return Value

Type: T

.NET Framework Security

See Also

Reference

RegistryEntryCollection Class

Microsoft.TeamFoundation.Framework.Server Namespace