RoleManagerEventArgs 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
提供 RoleManagerModule 類別的 GetRoles 事件之事件資料。
public ref class RoleManagerEventArgs sealed : EventArgs
public sealed class RoleManagerEventArgs : EventArgs
type RoleManagerEventArgs = class
inherit EventArgs
Public NotInheritable Class RoleManagerEventArgs
Inherits EventArgs
- 繼承
備註
物件 RoleManagerEventArgs 會將事件資訊提供給 GetRoles 類別的事件 RoleManagerModule 。 物件 RoleManagerEventArgs 提供目前要求的 存取 HttpContext 權,而 Boolean
RolesPopulated 屬性可用來啟用或取消 的 RoleManagerModule 建立 RolePrincipal 。
建構函式
RoleManagerEventArgs(HttpContext) |
建立一個 RoleManagerEventArgs 類別的執行個體,並將 Context 屬性設定為指定的 HttpContext。 |
屬性
Context |
取得目前要求的 HttpContext。 |
RolesPopulated |
取得或設定表示角色資訊是否已經套用到目前使用者的值。 |
方法
Equals(Object) |
判斷指定的物件是否等於目前的物件。 (繼承來源 Object) |
GetHashCode() |
做為預設雜湊函式。 (繼承來源 Object) |
GetType() |
取得目前執行個體的 Type。 (繼承來源 Object) |
MemberwiseClone() |
建立目前 Object 的淺層複製。 (繼承來源 Object) |
ToString() |
傳回代表目前物件的字串。 (繼承來源 Object) |
適用於
另請參閱
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應