public static Task<List<RoleUserRecord>> GetCardContextUsersAsync(
this IContextRoleManager manager,
ContextRole role,
Guid cardID,
bool useSafeTransaction = false,
CancellationToken cancellationToken = default
)
<ExtensionAttribute>
Public Shared Function GetCardContextUsersAsync (
manager As IContextRoleManager,
role As ContextRole,
cardID As Guid,
Optional useSafeTransaction As Boolean = false,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of List(Of RoleUserRecord))
public:
[ExtensionAttribute]
static Task<List<RoleUserRecord^>^>^ GetCardContextUsersAsync(
IContextRoleManager^ manager,
ContextRole^ role,
Guid cardID,
bool useSafeTransaction = false,
CancellationToken cancellationToken = CancellationToken()
)
[<ExtensionAttribute>]
static member GetCardContextUsersAsync :
manager : IContextRoleManager *
role : ContextRole *
cardID : Guid *
?useSafeTransaction : bool *
?cancellationToken : CancellationToken
(* Defaults:
let _useSafeTransaction = defaultArg useSafeTransaction false
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<List<RoleUserRecord>>
Состав контекстной роли.
У каждого объекта заполнено свойство UserID и может быть заполнено свойство UserName, если SQL-запрос контекстной роли role возвращает и идентификатор, и имя пользователя.