ShowCardEditorFuncAsync - делегат |
Делегат для переопределения действия на открытие карточки по модели [o:IUIHost.ShowCard]
Пространство имён:
Tessa.UI
Сборка:
Tessa.UI (в Tessa.UI.dll) Версия: 3.5.0.19
Синтаксис public delegate Task<IUIContextObject> ShowCardEditorFuncAsync(
ICardEditorModel editor,
Func<ICardEditorModel, CancellationToken, ValueTask> prepareEditorActionAsync = null,
ShowCardOptions options = null,
CancellationToken cancellationToken = default
)
Public Delegate Function ShowCardEditorFuncAsync (
editor As ICardEditorModel,
Optional prepareEditorActionAsync As Func(Of ICardEditorModel, CancellationToken, ValueTask) = Nothing,
Optional options As ShowCardOptions = Nothing,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of IUIContextObject)
public delegate Task<IUIContextObject^>^ ShowCardEditorFuncAsync(
ICardEditorModel^ editor,
Func<ICardEditorModel^, CancellationToken, ValueTask>^ prepareEditorActionAsync = nullptr,
ShowCardOptions^ options = nullptr,
CancellationToken cancellationToken = CancellationToken()
)
type ShowCardEditorFuncAsync =
delegate of
editor : ICardEditorModel *
?prepareEditorActionAsync : Func<ICardEditorModel, CancellationToken, ValueTask> *
?options : ShowCardOptions *
?cancellationToken : CancellationToken
(* Defaults:
let _prepareEditorActionAsync = defaultArg prepareEditorActionAsync null
let _options = defaultArg options null
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<IUIContextObject>
Параметры
- editor
- Тип: Tessa.UI.CardsICardEditorModel
- prepareEditorActionAsync (Optional)
- Тип: SystemFuncICardEditorModel, CancellationToken, ValueTask
- options (Optional)
- Тип: Tessa.UIShowCardOptions
- cancellationToken (Optional)
- Тип: System.ThreadingCancellationToken
Объект, посредством которого можно отменить асинхронную задачу.
Возвращаемое значение
Тип:
TaskIUIContextObjectСм. также