MessageMenuViewModel - конструктор
Пространство имён: Tessa.UI.Controls.ForumsСборка: Tessa.UI (в Tessa.UI.dll) Версия: 4.0.4
public MessageMenuViewModel(
Func<CancellationToken, Task> reply,
Func<CancellationToken, Task> getLink,
Func<CancellationToken, Task> edit = null,
Action 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 Action = 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,
Action^ 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 : Action *
?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 Action (Optional)
-
- isVisibleEdit Boolean (Optional)
-
- isVisibleReply Boolean (Optional)
-
- cancellationToken CancellationToken (Optional)
-