NullDocumentTabManagerOpenWorkplaceAsync(IWorkplaceMetadata, IEnumerableRequestParameter, Boolean, Boolean, Visibility, Boolean, WorkplaceOpenPosition, CancellationToken) - метод |
Осуществляет открытие нового рабочего места
Пространство имён:
Tessa.UI.Windows
Сборка:
Tessa.UI (в Tessa.UI.dll) Версия: 3.5.0.19
Синтаксис public ValueTask<ITessaShellTab> OpenWorkplaceAsync(
IWorkplaceMetadata workplaceMetadata,
IEnumerable<RequestParameter> parameters,
bool activate = true,
bool isCloseable = false,
Visibility treeVisibility = Visibility.Collapsed,
bool enabledEndUserModification = true,
WorkplaceOpenPosition workplaceOpenPosition = WorkplaceOpenPosition.AfterAll,
CancellationToken cancellationToken = default
)
Public Function OpenWorkplaceAsync (
workplaceMetadata As IWorkplaceMetadata,
parameters As IEnumerable(Of RequestParameter),
Optional activate As Boolean = true,
Optional isCloseable As Boolean = false,
Optional treeVisibility As Visibility = Visibility.Collapsed,
Optional enabledEndUserModification As Boolean = true,
Optional workplaceOpenPosition As WorkplaceOpenPosition = WorkplaceOpenPosition.AfterAll,
Optional cancellationToken As CancellationToken = Nothing
) As ValueTask(Of ITessaShellTab)
public:
virtual ValueTask<ITessaShellTab^> OpenWorkplaceAsync(
IWorkplaceMetadata^ workplaceMetadata,
IEnumerable<RequestParameter^>^ parameters,
bool activate = true,
bool isCloseable = false,
Visibility treeVisibility = Visibility::Collapsed,
bool enabledEndUserModification = true,
WorkplaceOpenPosition workplaceOpenPosition = WorkplaceOpenPosition::AfterAll,
CancellationToken cancellationToken = CancellationToken()
) sealed
abstract OpenWorkplaceAsync :
workplaceMetadata : IWorkplaceMetadata *
parameters : IEnumerable<RequestParameter> *
?activate : bool *
?isCloseable : bool *
?treeVisibility : Visibility *
?enabledEndUserModification : bool *
?workplaceOpenPosition : WorkplaceOpenPosition *
?cancellationToken : CancellationToken
(* Defaults:
let _activate = defaultArg activate true
let _isCloseable = defaultArg isCloseable false
let _treeVisibility = defaultArg treeVisibility Visibility.Collapsed
let _enabledEndUserModification = defaultArg enabledEndUserModification true
let _workplaceOpenPosition = defaultArg workplaceOpenPosition WorkplaceOpenPosition.AfterAll
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask<ITessaShellTab>
override OpenWorkplaceAsync :
workplaceMetadata : IWorkplaceMetadata *
parameters : IEnumerable<RequestParameter> *
?activate : bool *
?isCloseable : bool *
?treeVisibility : Visibility *
?enabledEndUserModification : bool *
?workplaceOpenPosition : WorkplaceOpenPosition *
?cancellationToken : CancellationToken
(* Defaults:
let _activate = defaultArg activate true
let _isCloseable = defaultArg isCloseable false
let _treeVisibility = defaultArg treeVisibility Visibility.Collapsed
let _enabledEndUserModification = defaultArg enabledEndUserModification true
let _workplaceOpenPosition = defaultArg workplaceOpenPosition WorkplaceOpenPosition.AfterAll
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask<ITessaShellTab>
Параметры
- workplaceMetadata
- Тип: Tessa.Views.WorkplacesIWorkplaceMetadata
Метаданные рабочего места
- parameters
- Тип: System.Collections.GenericIEnumerableRequestParameter
Список доп параметров
- activate (Optional)
- Тип: SystemBoolean
Признак необходимости активировать данное рабочее место
- isCloseable (Optional)
- Тип: SystemBoolean
Признак возможности закрытия рабочего места
- treeVisibility (Optional)
- Тип: System.WindowsVisibility
Признак необходимости отображения дерева представлений
- enabledEndUserModification (Optional)
- Тип: SystemBoolean
Признак возможности модификации рабочего места пользователем - workplaceOpenPosition (Optional)
- Тип: Tessa.UI.WindowsWorkplaceOpenPosition
Позиция в которую будет помещено открытое рабочее место - cancellationToken (Optional)
- Тип: System.ThreadingCancellationToken
Объект, посредством которого можно отменить асинхронную задачу.
Возвращаемое значение
Тип:
ValueTaskITessaShellTabВкладка с рабочим местом
Реализации
IDocumentTabManagerOpenWorkplaceAsync(IWorkplaceMetadata, IEnumerableRequestParameter, Boolean, Boolean, Visibility, Boolean, WorkplaceOpenPosition, CancellationToken)См. также