共用方式為


SPDatabaseException Class

Represents a database exception that is thrown when Microsoft SQL Server returns an error of any kind, including errors that occur in SharePoint Foundation business logic that is running in SQL Server.

Inheritance Hierarchy

System.Object
  System.Exception
    Microsoft.SharePoint.Administration.SPDatabaseException
      Microsoft.SharePoint.Administration.SPConcurrencyException

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public Class SPDatabaseException _
    Inherits Exception
'Usage
Dim instance As SPDatabaseException
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public class SPDatabaseException : Exception

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

SPDatabaseException Members

Microsoft.SharePoint.Administration Namespace