IFileContentPermissionManagerCanCreateFileLinkAsync - метод
Checks whether current user can read given file and create link to it.
Пространство имён: Tessa.Content.FilesСборка: Tessa (в Tessa.dll) Версия: 4.0.4
ValueTask<(bool Success, ValidationResult Result)> CanCreateFileLinkAsync(
IFileContentLinkPermissionContext context,
CancellationToken cancellationToken = default
)
Function CanCreateFileLinkAsync (
context As IFileContentLinkPermissionContext,
Optional cancellationToken As CancellationToken = Nothing
) As ValueTask(Of (Success As Boolean, Result As ValidationResult))
ValueTask<ValueTuple<bool, ValidationResult^>> CanCreateFileLinkAsync(
IFileContentLinkPermissionContext^ context,
CancellationToken cancellationToken = CancellationToken()
)
abstract CanCreateFileLinkAsync :
context : IFileContentLinkPermissionContext *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask<ValueTuple<bool, ValidationResult>>
- context IFileContentLinkPermissionContext
Context for checking permissions to create file link.
- cancellationToken CancellationToken (Optional)
Propagates notification that operations should be canceled.
ValueTaskValueTupleBoolean,
ValidationResultPermission check result.