Task<bool> CheckUserInCardContextAsync(
Guid roleID,
string roleName,
string sqlTextForUser,
string sqlTextForCard,
Guid cardID,
Guid userID,
bool useSafeTransaction = false,
CancellationToken cancellationToken = default
)
Function CheckUserInCardContextAsync (
roleID As Guid,
roleName As String,
sqlTextForUser As String,
sqlTextForCard As String,
cardID As Guid,
userID As Guid,
Optional useSafeTransaction As Boolean = false,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of Boolean)
Task<bool>^ CheckUserInCardContextAsync(
Guid roleID,
String^ roleName,
String^ sqlTextForUser,
String^ sqlTextForCard,
Guid cardID,
Guid userID,
bool useSafeTransaction = false,
CancellationToken cancellationToken = CancellationToken()
)
abstract CheckUserInCardContextAsync :
roleID : Guid *
roleName : string *
sqlTextForUser : string *
sqlTextForCard : string *
cardID : Guid *
userID : Guid *
?useSafeTransaction : bool *
?cancellationToken : CancellationToken
(* Defaults:
let _useSafeTransaction = defaultArg useSafeTransaction false
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<bool>
Текст SQL-запроса, возвращающего признак того, что заданный пользователь входит в состав контекстной роли для заданной карточки.
Значение обычно можно получить из свойства [Tessa.Roles.ContextRole.SqlTextForUser].