IdentityRole 類別
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
的預設實 IdentityRole<TKey> 作會使用字串做為主鍵。
public ref class IdentityRole : Microsoft::AspNetCore::Identity::IdentityRole<System::String ^>
C#
public class IdentityRole : Microsoft.AspNetCore.Identity.IdentityRole<string>
type IdentityRole = class
inherit IdentityRole<string>
Public Class IdentityRole
Inherits IdentityRole(Of String)
- 繼承
Identity |
初始化 IdentityRole 的新執行個體。 |
Identity |
初始化 IdentityRole 的新執行個體。 |
Concurrency |
每當角色保存到存放區時,應該變更的隨機值 (繼承來源 IdentityRole<TKey>) |
Id |
取得或設定這個角色的主鍵。 (繼承來源 IdentityRole<TKey>) |
Name |
取得或設定這個角色的名稱。 (繼承來源 IdentityRole<TKey>) |
Normalized |
取得或設定這個角色的正規化名稱。 (繼承來源 IdentityRole<TKey>) |
To |
傳回角色的名稱。 (繼承來源 IdentityRole<TKey>) |
產品 | 版本 |
---|---|
ASP.NET Core | 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |