Share via


SPFarmInitializationSettings.GetValueOrDefault<T> method

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Function GetValueOrDefault(Of T As IConvertible) ( _
    key As String, _
    defaultValue As T _
) As T
'Usage
Dim instance As SPFarmInitializationSettings
Dim key As String
Dim defaultValue As T
Dim returnValue As T

returnValue = instance.GetValueOrDefault(key, _
    defaultValue)
public T GetValueOrDefault<T>(
    string key,
    T defaultValue
)
where T : IConvertible

Type parameters

  • T

Parameters

  • defaultValue
    Type: T

Return value

Type: T

See also

Reference

SPFarmInitializationSettings class

SPFarmInitializationSettings members

Microsoft.SharePoint.Administration namespace