RichTextBoxAttachmentHelperSaveAttachmentAsync - метод
Сохраняет вложение.
Пространство имён: Tessa.UI.Controls.CustomRichTextBoxCtrl.CustomRichTextBoxСборка: Tessa.UI (в Tessa.UI.dll) Версия: 4.0.4
public static Task SaveAttachmentAsync(
AttachmentType type,
Guid fileId,
Func<Guid, CancellationToken, Task<(List<string> , IValidationResultBuilder validationResult)>> getFileContentFromCardAsync,
CancellationToken cancellationToken = default
)
Public Shared Function SaveAttachmentAsync (
type As AttachmentType,
fileId As Guid,
getFileContentFromCardAsync As Func(Of Guid, CancellationToken, Task(Of ( As List(Of String), validationResult As IValidationResultBuilder))),
Optional cancellationToken As CancellationToken = Nothing
) As Task
public:
static Task^ SaveAttachmentAsync(
AttachmentType type,
Guid fileId,
Func<Guid, CancellationToken, Task<ValueTuple<List<String^>^, IValidationResultBuilder^>>^>^ getFileContentFromCardAsync,
CancellationToken cancellationToken = CancellationToken()
)
static member SaveAttachmentAsync :
type : AttachmentType *
fileId : Guid *
getFileContentFromCardAsync : Func<Guid, CancellationToken, Task<ValueTuple<List<string>, IValidationResultBuilder>>> *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task
- type AttachmentType
- Тип вложения.
- fileId Guid
- Идентификатор файла.
- getFileContentFromCardAsync FuncGuid, CancellationToken, TaskValueTupleListString, IValidationResultBuilder
- Действие для получения содержимого файла.
- cancellationToken CancellationToken (Optional)
- Объект, посредством которого можно отменить асинхронную задачу.
TaskАсинхронная задача.