ClientDocumentTabManagerOpenWorkplaceAsync(IWorkplaceMetadata, IEnumerableRequestParameter, Boolean, Boolean, Visibility, Boolean, WorkplaceOpenPosition, String, CancellationToken) - метод
Осуществляет создание и открытие нового рабочего места.
Пространство имён: Tessa.UIСборка: Tessa.UI (в Tessa.UI.dll) Версия: 3.6.0.22
public ValueTask<ITessaShellTab> OpenWorkplaceAsync(
IWorkplaceMetadata workplaceMetadata,
IEnumerable<RequestParameter> parameters,
bool activate = true,
bool isCloseable = true,
Visibility treeVisibility = 2,
bool enabledEndUserModification = true,
WorkplaceOpenPosition workplaceOpenPosition = WorkplaceOpenPosition.AfterAll,
string automationPrefix = null,
CancellationToken cancellationToken = default
)
Public Function OpenWorkplaceAsync (
workplaceMetadata As IWorkplaceMetadata,
parameters As IEnumerable(Of RequestParameter),
Optional activate As Boolean = true,
Optional isCloseable As Boolean = true,
Optional treeVisibility As Visibility = 2,
Optional enabledEndUserModification As Boolean = true,
Optional workplaceOpenPosition As WorkplaceOpenPosition = WorkplaceOpenPosition.AfterAll,
Optional automationPrefix As String = Nothing,
Optional cancellationToken As CancellationToken = Nothing
) As ValueTask(Of ITessaShellTab)
public:
virtual ValueTask<ITessaShellTab^> OpenWorkplaceAsync(
IWorkplaceMetadata^ workplaceMetadata,
IEnumerable<RequestParameter^>^ parameters,
bool activate = true,
bool isCloseable = true,
Visibility^ treeVisibility = 2,
bool enabledEndUserModification = true,
WorkplaceOpenPosition workplaceOpenPosition = WorkplaceOpenPosition::AfterAll,
String^ automationPrefix = nullptr,
CancellationToken cancellationToken = CancellationToken()
) sealed
abstract OpenWorkplaceAsync :
workplaceMetadata : IWorkplaceMetadata *
parameters : IEnumerable<RequestParameter> *
?activate : bool *
?isCloseable : bool *
?treeVisibility : Visibility *
?enabledEndUserModification : bool *
?workplaceOpenPosition : WorkplaceOpenPosition *
?automationPrefix : string *
?cancellationToken : CancellationToken
(* Defaults:
let _activate = defaultArg activate true
let _isCloseable = defaultArg isCloseable true
let _treeVisibility = defaultArg treeVisibility 2
let _enabledEndUserModification = defaultArg enabledEndUserModification true
let _workplaceOpenPosition = defaultArg workplaceOpenPosition WorkplaceOpenPosition.AfterAll
let _automationPrefix = defaultArg automationPrefix null
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 *
?automationPrefix : string *
?cancellationToken : CancellationToken
(* Defaults:
let _activate = defaultArg activate true
let _isCloseable = defaultArg isCloseable true
let _treeVisibility = defaultArg treeVisibility 2
let _enabledEndUserModification = defaultArg enabledEndUserModification true
let _workplaceOpenPosition = defaultArg workplaceOpenPosition WorkplaceOpenPosition.AfterAll
let _automationPrefix = defaultArg automationPrefix null
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask<ITessaShellTab>
- workplaceMetadata IWorkplaceMetadata
-
Метаданные рабочего места.
- parameters IEnumerableRequestParameter
-
Список доп параметров.
- activate Boolean (Optional)
-
Признак необходимости активировать данное рабочее место.
- isCloseable Boolean (Optional)
-
Признак возможности закрытия рабочего места.
- treeVisibility Visibility (Optional)
-
Признак необходимости отображения дерева представлений.
- enabledEndUserModification Boolean (Optional)
- Признак возможности модификации рабочего места пользователем.
- workplaceOpenPosition WorkplaceOpenPosition (Optional)
- Позиция в которую будет помещено открытое рабочее место.
- automationPrefix String (Optional)
-
Перфикс для объекта автоматизации рабочего места.
Позволяет понять как именно открыто рабочее место (по умолчанию) или командой из узла дерева рабочего места.
Для открытия рабочего места по умолчанию выставите null.
- cancellationToken CancellationToken (Optional)
- Объект, посредством которого можно отменить асинхронную задачу.
ValueTaskITessaShellTabВкладка с рабочим местом.
IDocumentTabManagerOpenWorkplaceAsync(IWorkplaceMetadata, IEnumerableRequestParameter, Boolean, Boolean, Visibility, Boolean, WorkplaceOpenPosition, String, CancellationToken)