Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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).