共用方式為


IdentityRole<TKey,TUserRole,TRoleClaim> 建構函式

定義

多載

IdentityRole<TKey,TUserRole,TRoleClaim>()

初始化 IdentityRole<TKey> 的新執行個體。

IdentityRole<TKey,TUserRole,TRoleClaim>(String)

初始化 IdentityRole<TKey> 的新執行個體。

IdentityRole<TKey,TUserRole,TRoleClaim>()

初始化 IdentityRole<TKey> 的新執行個體。

public:
 IdentityRole();
public IdentityRole ();
Public Sub New ()

適用於

IdentityRole<TKey,TUserRole,TRoleClaim>(String)

初始化 IdentityRole<TKey> 的新執行個體。

public:
 IdentityRole(System::String ^ roleName);
public IdentityRole (string roleName);
new Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityRole<'Key, 'UserRole, 'RoleClaim (requires 'Key :> IEquatable<'Key> and 'UserRole :> Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserRole<'Key> and 'RoleClaim :> Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityRoleClaim<'Key>)> : string -> Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityRole<'Key, 'UserRole, 'RoleClaim (requires 'Key :> IEquatable<'Key> and 'UserRole :> Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserRole<'Key> and 'RoleClaim :> Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityRoleClaim<'Key>)>
Public Sub New (roleName As String)

參數

roleName
String

角色名稱。

適用於