SPUsageProvider.TryGetValueOrDefault<T> method
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Protected Shared Function TryGetValueOrDefault(Of T As New) ( _
col As String, _
parser As SPUsageProvider.TryParse(Of T) _
) As T
'Usage
Dim col As String
Dim parser As SPUsageProvider.TryParse(Of T)
Dim returnValue As T
returnValue = SPUsageProvider.TryGetValueOrDefault(col, _
parser)
protected static T TryGetValueOrDefault<T>(
string col,
SPUsageProvider.TryParse<T> parser
)
where T : new()
Type parameters
- T
Parameters
- col
Type: System.String
- parser
Type: Microsoft.SharePoint.Administration.SPUsageProvider.TryParse<T>
Return value
Type: T