共用方式為


SPDatabaseException constructor (String, Exception)

初始化根據指定的錯誤字串及例外狀況的SPDatabaseException類別的新執行個體。

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

Syntax

'宣告
Public Sub New ( _
    error As String, _
    e As Exception _
)
'用途
Dim error As String
Dim e As Exception

Dim instance As New SPDatabaseException(error, e)
public SPDatabaseException(
    string error,
    Exception e
)

參數

  • error
    Type: System.String

    字串,包含訊息,說明此項例外的原因。

  • e
    Type: System.Exception

    System.Exception物件,代表例外狀況的原因。

請參閱

參照

SPDatabaseException class

SPDatabaseException members

SPDatabaseException overload

Microsoft.SharePoint.Administration namespace