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