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
- key
Type: System.String
- defaultValue
Type: T
Return value
Type: T
See also
Reference
SPFarmInitializationSettings class