View Source
Interface IMembershipRoleService<T>
Assembly: Umbraco.Core.dll
Syntax
public interface IMembershipRoleService<out T>
where T : class, IMembershipUser
Type Parameters
Methods
View Source
AddRole(String)
Declaration
void AddRole(string roleName)
Parameters
Type |
Name |
Description |
System.String |
roleName |
|
View Source
AssignRole(Int32, String)
Declaration
void AssignRole(int memberId, string roleName)
Parameters
Type |
Name |
Description |
System.Int32 |
memberId |
|
System.String |
roleName |
|
View Source
AssignRole(String, String)
Declaration
void AssignRole(string username, string roleName)
Parameters
Type |
Name |
Description |
System.String |
username |
|
System.String |
roleName |
|
View Source
AssignRoles(Int32[], String[])
Declaration
void AssignRoles(int[] memberIds, string[] roleNames)
Parameters
Type |
Name |
Description |
System.Int32[] |
memberIds |
|
System.String[] |
roleNames |
|
View Source
AssignRoles(String[], String[])
Declaration
void AssignRoles(string[] usernames, string[] roleNames)
Parameters
Type |
Name |
Description |
System.String[] |
usernames |
|
System.String[] |
roleNames |
|
View Source
DeleteRole(String, Boolean)
Declaration
bool DeleteRole(string roleName, bool throwIfBeingUsed)
Parameters
Type |
Name |
Description |
System.String |
roleName |
|
System.Boolean |
throwIfBeingUsed |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
DissociateRole(Int32, String)
Declaration
void DissociateRole(int memberId, string roleName)
Parameters
Type |
Name |
Description |
System.Int32 |
memberId |
|
System.String |
roleName |
|
View Source
DissociateRole(String, String)
Declaration
void DissociateRole(string username, string roleName)
Parameters
Type |
Name |
Description |
System.String |
username |
|
System.String |
roleName |
|
View Source
DissociateRoles(Int32[], String[])
Declaration
void DissociateRoles(int[] memberIds, string[] roleNames)
Parameters
Type |
Name |
Description |
System.Int32[] |
memberIds |
|
System.String[] |
roleNames |
|
View Source
DissociateRoles(String[], String[])
Declaration
void DissociateRoles(string[] usernames, string[] roleNames)
Parameters
Type |
Name |
Description |
System.String[] |
usernames |
|
System.String[] |
roleNames |
|
View Source
FindMembersInRole(String, String, StringPropertyMatchType)
Declaration
IEnumerable<T> FindMembersInRole(string roleName, string usernameToMatch, StringPropertyMatchType matchType = StringPropertyMatchType.StartsWith)
Parameters
Returns
Type |
Description |
IEnumerable<T> |
|
View Source
GetAllRoles()
Declaration
IEnumerable<IMemberGroup> GetAllRoles()
Returns
View Source
GetAllRoles(Int32)
Declaration
IEnumerable<string> GetAllRoles(int memberId)
Parameters
Type |
Name |
Description |
System.Int32 |
memberId |
|
Returns
Type |
Description |
IEnumerable<System.String> |
|
View Source
GetAllRoles(String)
Declaration
IEnumerable<string> GetAllRoles(string username)
Parameters
Type |
Name |
Description |
System.String |
username |
|
Returns
Type |
Description |
IEnumerable<System.String> |
|
View Source
GetAllRolesIds()
Declaration
IEnumerable<int> GetAllRolesIds()
Returns
Type |
Description |
IEnumerable<System.Int32> |
|
View Source
GetAllRolesIds(Int32)
Declaration
IEnumerable<int> GetAllRolesIds(int memberId)
Parameters
Type |
Name |
Description |
System.Int32 |
memberId |
|
Returns
Type |
Description |
IEnumerable<System.Int32> |
|
View Source
GetAllRolesIds(String)
Declaration
IEnumerable<int> GetAllRolesIds(string username)
Parameters
Type |
Name |
Description |
System.String |
username |
|
Returns
Type |
Description |
IEnumerable<System.Int32> |
|
View Source
GetMembersInRole(String)
Declaration
IEnumerable<T> GetMembersInRole(string roleName)
Parameters
Type |
Name |
Description |
System.String |
roleName |
|
Returns
Type |
Description |
IEnumerable<T> |
|
View Source
ReplaceRoles(Int32[], String[])
Declaration
void ReplaceRoles(int[] memberIds, string[] roleNames)
Parameters
Type |
Name |
Description |
System.Int32[] |
memberIds |
|
System.String[] |
roleNames |
|
View Source
ReplaceRoles(String[], String[])
Declaration
void ReplaceRoles(string[] usernames, string[] roleNames)
Parameters
Type |
Name |
Description |
System.String[] |
usernames |
|
System.String[] |
roleNames |
|