次の方法で共有


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

Return value

Type: T

See also

Reference

SPUsageProvider class

SPUsageProvider members

Microsoft.SharePoint.Administration namespace