共用方式為


SPException class

表示在Microsoft SharePoint Foundation中的例外狀況。

Inheritance hierarchy

System.Object
  System.Exception
    System.ApplicationException
      Microsoft.SharePoint.SPException
        

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

Syntax

'宣告
<SerializableAttribute> _
Public Class SPException _
    Inherits ApplicationException
'用途
Dim instance As SPException
[SerializableAttribute]
public class SPException : ApplicationException

備註

SPException類別通常用來指出SharePoint Foundation的必要的違規情形。例如,嘗試刪除範本藝廊網站會建立例外狀況。

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.

請參閱

參照

SPException members

Microsoft.SharePoint namespace

Inheritance hierarchy

System.Object
  System.Exception
    System.ApplicationException
      Microsoft.SharePoint.SPException
        Microsoft.SharePoint.AppPackageSizeExceededException
        Microsoft.SharePoint.AppPackageValidationException
        Microsoft.SharePoint.SPContentTypeReadOnlyException
        Microsoft.SharePoint.SPContentTypeSealedException
        Microsoft.SharePoint.SPDistributionGroupException
        Microsoft.SharePoint.SPDuplicateValuesFoundException
        Microsoft.SharePoint.SPEndpointAddressNotFoundException
        Microsoft.SharePoint.SPExternalApplicationRegistrationException
        Microsoft.SharePoint.SPFeatureDefinitionMissingException
        Microsoft.SharePoint.SPFeatureDependencyNotActivatedException
        Microsoft.SharePoint.SPFeatureIsOrphanedException
        Microsoft.SharePoint.SPFeatureUpgradeFatalErrorException
        Microsoft.SharePoint.SPFeatureUpgradeInformativeWarningException
        Microsoft.SharePoint.SPFieldValidationException
        Microsoft.SharePoint.SPFieldValueException
        Microsoft.SharePoint.SPFileCheckOutException
        Microsoft.SharePoint.SPFileLockException
        Microsoft.SharePoint.SPInvalidLookupValuesException
        Microsoft.SharePoint.SPInvalidPropertyException
        Microsoft.SharePoint.SPListDataValidationException
        Microsoft.SharePoint.SPQueryThrottledException
        Microsoft.SharePoint.SPResourceBudgetExceededException