MessageMenuViewModel - конструктор |
Пространство имён:
Tessa.UI.Controls.Forums
Сборка:
Tessa.UI (в Tessa.UI.dll) Версия: 3.5.0.19
Синтаксис public MessageMenuViewModel(
Func<CancellationToken, Task> reply,
Func<CancellationToken, Task> getLink,
Func<CancellationToken, Task> edit = null,
Func<CancellationToken, Task> copy = null,
bool isVisibleEdit = false,
bool isVisibleReply = false,
CancellationToken cancellationToken = default
)
Public Sub New (
reply As Func(Of CancellationToken, Task),
getLink As Func(Of CancellationToken, Task),
Optional edit As Func(Of CancellationToken, Task) = Nothing,
Optional copy As Func(Of CancellationToken, Task) = Nothing,
Optional isVisibleEdit As Boolean = false,
Optional isVisibleReply As Boolean = false,
Optional cancellationToken As CancellationToken = Nothing
)
public:
MessageMenuViewModel(
Func<CancellationToken, Task^>^ reply,
Func<CancellationToken, Task^>^ getLink,
Func<CancellationToken, Task^>^ edit = nullptr,
Func<CancellationToken, Task^>^ copy = nullptr,
bool isVisibleEdit = false,
bool isVisibleReply = false,
CancellationToken cancellationToken = CancellationToken()
)
new :
reply : Func<CancellationToken, Task> *
getLink : Func<CancellationToken, Task> *
?edit : Func<CancellationToken, Task> *
?copy : Func<CancellationToken, Task> *
?isVisibleEdit : bool *
?isVisibleReply : bool *
?cancellationToken : CancellationToken
(* Defaults:
let _edit = defaultArg edit null
let _copy = defaultArg copy null
let _isVisibleEdit = defaultArg isVisibleEdit false
let _isVisibleReply = defaultArg isVisibleReply false
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> MessageMenuViewModel
Параметры
- reply
- Тип: SystemFuncCancellationToken, Task
- getLink
- Тип: SystemFuncCancellationToken, Task
- edit (Optional)
- Тип: SystemFuncCancellationToken, Task
- copy (Optional)
- Тип: SystemFuncCancellationToken, Task
- isVisibleEdit (Optional)
- Тип: SystemBoolean
- isVisibleReply (Optional)
- Тип: SystemBoolean
- cancellationToken (Optional)
- Тип: System.ThreadingCancellationToken
См. также