Share via


PropertiesCollection.GetValue<T> Method

Namespace:  Microsoft.VisualStudio.Services.WebApi
Assembly:  Microsoft.VisualStudio.Services.WebApi (in Microsoft.VisualStudio.Services.WebApi.dll)

Syntax

'Declaration
Public Function GetValue(Of T) ( _
    key As String, _
    defaultValue As T _
) As T
public T GetValue<T>(
    string key,
    T defaultValue
)
public:
generic<typename T>
T GetValue(
    String^ key, 
    T defaultValue
)
member GetValue : 
        key: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

PropertiesCollection Class

Microsoft.VisualStudio.Services.WebApi Namespace