Error from MSDN——No1. Roles.Enabled

1.          错误页面路径:

l          ms-help://MS.MSDNQTR.v80.en/MS.MSDN.v80/MS.NETDEVFX.v20.en/cpref12/html/P_System_Web_Security_Roles_Enabled.htm

l          http://msdn2.microsoft.com/en-us/library/system.web.security.roles.enabled.aspx

2.          页面内容:

 

Note: This property is new in the .NET Framework version 2.0.

Gets or sets a value indicating whether role management is enabled for the current Web application.

Namespace: System.Web.Security
Assembly: System.Web (in system.web.dll)

Syntax

Visual Basic (Declaration)

Public Shared ReadOnly Property Enabled As Boolean

Visual Basic (Usage)

Dim value As Boolean

value = Roles.Enabled

C#

public static bool Enabled { get; }

 

3.          简要说明:

从以上所列文档中,无法判断是否Enabled属性是只读,还是既只读,又可写。
然而,根据Visual Studio 2005提供的Web站点管理工具中可以实现在线启用/关闭角色管理功能,可以判断该属性既可读,也可写。以上错误是由于属性声明代码错误。

posted on 2005-12-16 13:10  POLARIS  阅读(1084)  评论(0编辑  收藏  举报

导航