SPLog.GetInstance method (String)
Returns an instance of the log object that belongs to the specified category.
Namespace: Microsoft.SharePoint.Upgrade
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Function GetInstance ( _
category As String _
) As SPLog
'Usage
Dim category As String
Dim returnValue As SPLog
returnValue = SPLog.GetInstance(category)
public static SPLog GetInstance(
string category
)
Parameters
category
Type: System.StringA string that contains the name of the category to which the log belongs.
Return value
Type: Microsoft.SharePoint.Upgrade.SPLog
An SPLog object that represents the log.
Remarks
The GetInstance method returns a System.ArgumentNullException exception if the category parameter contains a null reference (Nothing in Visual Basic).