SPVirtualServer.CatchAccessDeniedException 属性

请注意:此 API 现在已过时。

过时。改为使用Microsoft.SharePoint.SPSecurity类的CatchAccessDeniedException属性。( Windows SharePoint Services 2.0, CatchAccessDeniedException类用于获取或设置一个布尔值,指定是否处理访问被拒绝的异常,并要求用户进行身份验证,并以保留它是为了向后兼容性。)

命名空间:  Microsoft.SharePoint.Administration
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
<ObsoleteAttribute("Use SPSecurity.CatchAccessDeniedException instead")> _
Public Property CatchAccessDeniedException As Boolean
    Get
    Set
用法
Dim instance As SPVirtualServer
Dim value As Boolean

value = instance.CatchAccessDeniedException

instance.CatchAccessDeniedException = value
[ObsoleteAttribute("Use SPSecurity.CatchAccessDeniedException instead")]
public bool CatchAccessDeniedException { get; set; }

属性值

类型:System.Boolean
true如果访问被拒绝,异常的处理和用户身份验证是必需的 ;否则为false。

另请参阅

引用

SPVirtualServer 类

SPVirtualServer 成员

Microsoft.SharePoint.Administration 命名空间