KrFileAccessHelperCheckAccessAsync - метод |
Метод проверяет права доступа к файлу и возвращает результат проверки прав, или null, если проверка прав доступа не требуется.
Пространство имён:
Tessa.Extensions.Default.Server.Files
Сборка:
Tessa.Extensions.Default.Server (в Tessa.Extensions.Default.Server.dll) Версия: 3.5.0.19
Синтаксис public static Task<KrPermissionsManagerCheckResult> CheckAccessAsync(
CardFileRequestBase request,
ICardExtensionContext context,
Guid cardID,
IKrPermissionsManager permissionsManager,
CancellationToken cancellationToken = default
)
Public Shared Function CheckAccessAsync (
request As CardFileRequestBase,
context As ICardExtensionContext,
cardID As Guid,
permissionsManager As IKrPermissionsManager,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of KrPermissionsManagerCheckResult)
public:
static Task<KrPermissionsManagerCheckResult^>^ CheckAccessAsync(
CardFileRequestBase^ request,
ICardExtensionContext^ context,
Guid cardID,
IKrPermissionsManager^ permissionsManager,
CancellationToken cancellationToken = CancellationToken()
)
static member CheckAccessAsync :
request : CardFileRequestBase *
context : ICardExtensionContext *
cardID : Guid *
permissionsManager : IKrPermissionsManager *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<KrPermissionsManagerCheckResult>
Параметры
- request
- Тип: Tessa.CardsCardFileRequestBase
- context
- Тип: Tessa.Cards.ExtensionsICardExtensionContext
- cardID
- Тип: SystemGuid
- permissionsManager
- Тип: Tessa.Extensions.Default.Server.Workflow.KrPermissionsIKrPermissionsManager
- cancellationToken (Optional)
- Тип: System.ThreadingCancellationToken
Возвращаемое значение
Тип:
TaskKrPermissionsManagerCheckResultСм. также