FakeDocumentTabManagerOpenWorkplaceAsync(IWorkplaceViewModel, Boolean, WorkplaceOpenPosition, CancellationToken) - метод
Открывает вкладку с рабочим местом.
Пространство имён: Tessa.UI.WindowsСборка: Tessa.UI (в Tessa.UI.dll) Версия: 4.0.4
public ValueTask<IWorkplaceTab> OpenWorkplaceAsync(
IWorkplaceViewModel workplace,
bool activate = true,
WorkplaceOpenPosition position = WorkplaceOpenPosition.AfterAll,
CancellationToken cancellationToken = default
)
Public Function OpenWorkplaceAsync (
workplace As IWorkplaceViewModel,
Optional activate As Boolean = true,
Optional position As WorkplaceOpenPosition = WorkplaceOpenPosition.AfterAll,
Optional cancellationToken As CancellationToken = Nothing
) As ValueTask(Of IWorkplaceTab)
public:
virtual ValueTask<IWorkplaceTab^> OpenWorkplaceAsync(
IWorkplaceViewModel^ workplace,
bool activate = true,
WorkplaceOpenPosition position = WorkplaceOpenPosition::AfterAll,
CancellationToken cancellationToken = CancellationToken()
) sealed
abstract OpenWorkplaceAsync :
workplace : IWorkplaceViewModel *
?activate : bool *
?position : WorkplaceOpenPosition *
?cancellationToken : CancellationToken
(* Defaults:
let _activate = defaultArg activate true
let _position = defaultArg position WorkplaceOpenPosition.AfterAll
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask<IWorkplaceTab>
override OpenWorkplaceAsync :
workplace : IWorkplaceViewModel *
?activate : bool *
?position : WorkplaceOpenPosition *
?cancellationToken : CancellationToken
(* Defaults:
let _activate = defaultArg activate true
let _position = defaultArg position WorkplaceOpenPosition.AfterAll
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask<IWorkplaceTab>
- workplace IWorkplaceViewModel
- Модель представления рабочего места, открываемого во вкладке.
- activate Boolean (Optional)
- Признак того, что вкладка будет активирована после открытия.
- position WorkplaceOpenPosition (Optional)
- Позиция, в которую будет помещена вкладка с рабочем местом.
- cancellationToken CancellationToken (Optional)
- Объект, посредством которого можно отменить асинхронную задачу.
ValueTaskIWorkplaceTabВкладка с рабочим местом
IDocumentTabManagerOpenWorkplaceAsync(IWorkplaceViewModel, Boolean, WorkplaceOpenPosition, CancellationToken) NotSupportedException | Метод не поддерживается. |