Error from MSDN——No1. Roles.Enabled

來源:互聯網
上載者:User

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網站管理工具中可以實現線上啟用/關閉角色管理功能,可以判斷該屬性既可讀,也可寫。以上錯誤是由於屬性聲明代碼錯誤。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.