IFileContentPermissionManagerCanCreateFileLinkAsync - метод

Checks whether current user can read given file and create link to it.

Definition

Пространство имён: Tessa.Content.Files
Сборка: Tessa (в Tessa.dll) Версия: 4.0.4
C#
ValueTask<(bool Success, ValidationResult Result)> CanCreateFileLinkAsync(
	IFileContentLinkPermissionContext context,
	CancellationToken cancellationToken = default
)

Параметры

context  IFileContentLinkPermissionContext
Context for checking permissions to create file link.
cancellationToken  CancellationToken  (Optional)
Propagates notification that operations should be canceled.

Возвращаемое значение

ValueTaskValueTupleBoolean, ValidationResult
Permission check result.

См. также