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
- path
Type: System.String
- defaultValue
Type: T
Return Value
Type: T
.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.