共用方式為


SPLog.Warning method (String, Exception)

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

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

Syntax

'宣告
Public Sub Warning ( _
    output As String, _
    exception As Exception _
)
'用途
Dim instance As SPLog
Dim output As String
Dim exception As Exception

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

參數

  • output
    Type: System.String

    字串,其中包含將會寫入至事件記錄檔的警告。

  • exception
    Type: System.Exception

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

請參閱

參照

SPLog class

SPLog members

Warning overload

Microsoft.SharePoint.Upgrade namespace