RichTextBoxViewModelInitItems - метод
Пространство имён: Tessa.UI.Controls.CustomRichTextBoxCtrlСборка: Tessa.UI (в Tessa.UI.dll) Версия: 3.6.0.22
public override void InitItems(
ListStorage<ItemModel> items,
Func<ItemModel, CancellationToken, ValueTask> previewFileAsyncFunc = null,
Func<Guid, CancellationToken, Task<(List<string> filePaths, IValidationResultBuilder validationResult)>> getFileContentAction = null,
Func<ItemModel, CancellationToken, Task> removeAction = null
)
Public Overrides Sub InitItems (
items As ListStorage(Of ItemModel),
Optional previewFileAsyncFunc As Func(Of ItemModel, CancellationToken, ValueTask) = Nothing,
Optional getFileContentAction As Func(Of Guid, CancellationToken, Task(Of (filePaths As List(Of String), validationResult As IValidationResultBuilder))) = Nothing,
Optional removeAction As Func(Of ItemModel, CancellationToken, Task) = Nothing
)
public:
virtual void InitItems(
ListStorage<ItemModel^>^ items,
Func<ItemModel^, CancellationToken, ValueTask>^ previewFileAsyncFunc = nullptr,
Func<Guid, CancellationToken, Task<ValueTuple<List<String^>^, IValidationResultBuilder^>>^>^ getFileContentAction = nullptr,
Func<ItemModel^, CancellationToken, Task^>^ removeAction = nullptr
) override
abstract InitItems :
items : ListStorage<ItemModel> *
?previewFileAsyncFunc : Func<ItemModel, CancellationToken, ValueTask> *
?getFileContentAction : Func<Guid, CancellationToken, Task<ValueTuple<List<string>, IValidationResultBuilder>>> *
?removeAction : Func<ItemModel, CancellationToken, Task>
(* Defaults:
let _previewFileAsyncFunc = defaultArg previewFileAsyncFunc null
let _getFileContentAction = defaultArg getFileContentAction null
let _removeAction = defaultArg removeAction null
*)
-> unit
override InitItems :
items : ListStorage<ItemModel> *
?previewFileAsyncFunc : Func<ItemModel, CancellationToken, ValueTask> *
?getFileContentAction : Func<Guid, CancellationToken, Task<ValueTuple<List<string>, IValidationResultBuilder>>> *
?removeAction : Func<ItemModel, CancellationToken, Task>
(* Defaults:
let _previewFileAsyncFunc = defaultArg previewFileAsyncFunc null
let _getFileContentAction = defaultArg getFileContentAction null
let _removeAction = defaultArg removeAction null
*)
-> unit
Параметры
- items ListStorageItemModel
-
- previewFileAsyncFunc FuncItemModel, CancellationToken, ValueTask (Optional)
-
- getFileContentAction FuncGuid, CancellationToken, TaskValueTupleListString, IValidationResultBuilder (Optional)
-
- removeAction FuncItemModel, CancellationToken, Task (Optional)
-