共用方式為


SPLog.Warning method (String, Exception, Object[])

指定的字串、 例外狀況和物件清單升級記錄檔會以寫入一則警告訊息。這通電話將會造成升級工作階段包含SPLog以下列一項增加其警告計數。會包含一或多個警告升級工作階段會被視為成功。

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

Syntax

'宣告
Public Sub Warning ( _
    format As String, _
    exception As Exception, _
    ParamArray args As Object() _
)
'用途
Dim instance As SPLog
Dim format As String
Dim exception As Exception
Dim args As Object()

instance.Warning(format, exception, args)
public void Warning(
    string format,
    Exception exception,
    params Object[] args
)

參數

  • format
    Type: System.String

    格式字串,提供格式資訊。

  • exception
    Type: System.Exception

    System.Exception物件,代表其堆疊追蹤記錄的例外狀況。

  • args
    Type: []

    Object陣列,其中包含要格式化的零或多個物件。

請參閱

參照

SPLog class

SPLog members

Warning overload

Microsoft.SharePoint.Upgrade namespace