共用方式為


SPSite.CatchAccessDeniedException property

保留給內部使用。請改用 [ CatchAccessDeniedException ] 屬性來指定是否SharePoint Foundation補漏白,並處理 「 拒絕存取 」 的例外狀況。

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

Syntax

'宣告
Public Property CatchAccessDeniedException As Boolean
    Get
    Set
'用途
Dim instance As SPSite
Dim value As Boolean

value = instance.CatchAccessDeniedException

instance.CatchAccessDeniedException = value
public bool CatchAccessDeniedException { get; set; }

Property value

Type: System.Boolean
true如果SharePoint Foundation截獲和處理 「 拒絕存取 」 的例外狀況 ;否則, false。

請參閱

參照

SPSite class

SPSite members

Microsoft.SharePoint namespace