UserRoleInfoProviderGetAsync Method (Int32, Int32, NullableCancellationToken) |
Asynchronously gets an instance of the
UserRoleInfo binding structure.
Namespace: CMS.MembershipAssembly: CMS.Membership (in CMS.Membership.dll) Version: 13.0.131
Syntax public virtual Task<UserRoleInfo> GetAsync(
int userId,
int roleId,
Nullable<CancellationToken> cancellationToken = null
)
Parameters
- userId
- Type: SystemInt32
User ID. - roleId
- Type: SystemInt32
Role ID. - cancellationToken (Optional)
- Type: SystemNullableCancellationToken
The cancellation instruction.
Return Value
Type:
TaskUserRoleInfoReturns a task returning either an instance of
UserRoleInfo corresponding to given identifiers or null.
Implements
IUserRoleInfoProviderGetAsync(Int32, Int32, NullableCancellationToken)See Also