Interface IUserRoleInfoProvider
- Namespace
- CMS.Membership
- Assembly
- CMS.Membership.dll
Declares members for UserRoleInfo management.
public interface IUserRoleInfoProvider : IInfoProvider<UserRoleInfo>
- Inherited Members
- Extension Methods
Methods
Add(int, int)
Creates UserRoleInfo binding.
void Add(int userId, int roleId)
Parameters
userId
intUser ID.
roleId
intRole ID.
Get(int, int)
Gets an instance of the UserRoleInfo binding structure.
UserRoleInfo Get(int userId, int roleId)
Parameters
userId
intUser ID.
roleId
intRole ID.
Returns
- UserRoleInfo
Returns an instance of UserRoleInfo corresponding to given identifiers or null.
GetAsync(int, int, CancellationToken?)
Asynchronously gets an instance of the UserRoleInfo binding structure.
Task<UserRoleInfo> GetAsync(int userId, int roleId, CancellationToken? cancellationToken = null)
Parameters
userId
intUser ID.
roleId
intRole ID.
cancellationToken
CancellationToken?The cancellation instruction.
Returns
- Task<UserRoleInfo>
Returns a task returning either an instance of UserRoleInfo corresponding to given identifiers or null.
Remove(int, int)
Deletes UserRoleInfo binding.
void Remove(int userId, int roleId)
Parameters
userId
intUser ID.
roleId
intRole ID.