共用方式為


SPLog.Debug Method (String, Exception)

Writes the specified string and exception to the upgrade event log as a information-only message.

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

Syntax

'Declaration
Public Sub Debug ( _
    output As String, _
    exception As Exception _
)
'Usage
Dim instance As SPLog
Dim output As String
Dim exception As Exception

instance.Debug(output, exception)
public void Debug(
    string output,
    Exception exception
)

Parameters

  • output
    Type: System.String

    A string containing the message that will be written to the event log.

  • exception
    Type: System.Exception

    A System.Exception object that represents the exception.

See Also

Reference

SPLog Class

SPLog Members

Debug Overload

Microsoft.SharePoint.Upgrade Namespace