Click or drag to resize
IRolePermissionInfoProviderGetAsync Method
Asynchronously gets an instance of the RolePermissionInfo binding structure.

Namespace: CMS.Modules
Assembly: CMS.Modules (in CMS.Modules.dll) Version: 13.0.131
Syntax
C#
Task<RolePermissionInfo> GetAsync(
	int roleId,
	int permissionId,
	Nullable<CancellationToken> cancellationToken = null
)

Parameters

roleId
Type: SystemInt32
Role ID.
permissionId
Type: SystemInt32
Permission ID.
cancellationToken (Optional)
Type: SystemNullableCancellationToken
The cancellation instruction.

Return Value

Type: TaskRolePermissionInfo
Returns a task returning either an instance of RolePermissionInfo corresponding to given identifiers or null.
See Also