KrFileContentPermissionManagerCanCreateFileLinkAsync - метод
Checks whether current user can read given file and create link to it.
Пространство имён: Tessa.Extensions.Default.Server.FilesСборка: Tessa.Extensions.Default.Server (в Tessa.Extensions.Default.Server.dll) Версия: 4.0.4
public ValueTask<(bool Success, ValidationResult Result)> CanCreateFileLinkAsync(
IFileContentLinkPermissionContext context,
CancellationToken cancellationToken = default
)
Public Function CanCreateFileLinkAsync (
context As IFileContentLinkPermissionContext,
Optional cancellationToken As CancellationToken = Nothing
) As ValueTask(Of (Success As Boolean, Result As ValidationResult))
public:
virtual ValueTask<ValueTuple<bool, ValidationResult^>> CanCreateFileLinkAsync(
IFileContentLinkPermissionContext^ context,
CancellationToken cancellationToken = CancellationToken()
) sealed
abstract CanCreateFileLinkAsync :
context : IFileContentLinkPermissionContext *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask<ValueTuple<bool, ValidationResult>>
override 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.
IFileContentPermissionManagerCanCreateFileLinkAsync(IFileContentLinkPermissionContext, CancellationToken)