共用方式為


SPException.ErrorCode property

取得識別例外狀況的整數。

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

Syntax

'宣告
Public Property ErrorCode As Integer
    Get
    Friend Set
'用途
Dim instance As SPException
Dim value As Integer

value = instance.ErrorCode
public int ErrorCode { get; internal set; }

Property value

Type: System.Int32
32 位元的整數識別例外狀況。

請參閱

參照

SPException class

SPException members

Microsoft.SharePoint namespace