MessageMenuViewModel - конструктор
Пространство имён: Tessa.UI.Controls.ForumsСборка: Tessa.UI (в Tessa.UI.dll) Версия: 3.6.0.22
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 FuncCancellationToken, Task
-
- getLink FuncCancellationToken, Task
-
- edit FuncCancellationToken, Task (Optional)
-
- copy FuncCancellationToken, Task (Optional)
-
- isVisibleEdit Boolean (Optional)
-
- isVisibleReply Boolean (Optional)
-
- cancellationToken CancellationToken (Optional)
-