SPLog.GetInstance Method (Type)

Returns an instance of the log object that belongs to the specified type.

Namespace:  Microsoft.SharePoint.Upgrade
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Shared Function GetInstance ( _
    type As Type _
) As SPLog
'Usage
Dim type As Type
Dim returnValue As SPLog

returnValue = SPLog.GetInstance(type)
public static SPLog GetInstance(
    Type type
)

Parameters

  • type
    Type: System.Type

    A System.Type object that represents the type.

Return Value

Type: Microsoft.SharePoint.Upgrade.SPLog
An SPLog object that represents the log.

Remarks

The GetInstance method implements the full name of the specified type as the category.

This method returns a System.ArgumentNullException exception if the type parameter contains a null reference (Nothing in Visual Basic).

See Also

Reference

SPLog Class

SPLog Members

GetInstance Overload

Microsoft.SharePoint.Upgrade Namespace