SPSecurity.SuppressAccessDeniedRedirectInScope class
抑制自動重新導向, UnauthorizedException在擲回時內所使用的範圍。
Inheritance hierarchy
System.Object
Microsoft.SharePoint.SPSecurity.SuppressAccessDeniedRedirectInScope
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Class SuppressAccessDeniedRedirectInScope _
Implements IDisposable
'用途
Dim instance As SPSecurity.SuppressAccessDeniedRedirectInScope
public class SuppressAccessDeniedRedirectInScope : IDisposable
備註
擲回UnauthorizedException時, Microsoft SharePoint Foundation的預設行為是自動重新導向至 accessDenied.aspx,或傳回 HTTP 401 回應,根據使用者驗證是否未通過驗證。這種行為可能不需要在某些情況下,例如,呼叫程式應該在其中處理UnauthorizedException。
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.