Share via


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