SPLog.GetInstance-Methode (String)
Gibt eine Instanz des Objekts Protokoll, das in der angegebenen Kategorie gehört.
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
)
Parameter
category
Typ: System.StringEine Zeichenfolge, die den Namen der Kategorie enthält, zu der das Protokoll gehört.
Rückgabewert
Typ: Microsoft.SharePoint.Upgrade.SPLog
Ein SPLog -Objekt, das Protokoll darstellt.
Hinweise
Die GetInstance -Methode gibt eine Ausnahme System.ArgumentNullException zurück, wenn der Parameter categoryein Nullverweis (Nothing in Visual Basic)enthält.