SPUsageDefinition.GetLocal<T> Method
This method is used instead of the constructor to retrieve and create objects. If an instance of the derived SPUsageDefinition exists in the database, then that instance is returned. If an instance does not exist in the database, then a new instance is returned.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Shared Function GetLocal(Of T As {New, SPUsageDefinition}) As T
'Usage
Dim returnValue As T
returnValue = SPUsageDefinition.GetLocal()
public static T GetLocal<T>()
where T : new(), SPUsageDefinition
Type Parameters
- T
is the name of the SPUsageDefinition to retrieve.
Return Value
Type: T