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