RemoteAutomationClientSession.CreateWindowAsync 方法

定义

在父 AutomationElement 和子远程窗口之间创建父子关系。

public:
 virtual IAsyncOperation<RemoteAutomationWindow ^> ^ CreateWindowAsync(unsigned long long remoteWindowId, unsigned int remoteProcessId, Platform::Object ^ parentAutomationElement) = CreateWindowAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<RemoteAutomationWindow> CreateWindowAsync(uint64_t const& remoteWindowId, uint32_t const& remoteProcessId, IInspectable const& parentAutomationElement);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<RemoteAutomationWindow> CreateWindowAsync(ulong remoteWindowId, uint remoteProcessId, object parentAutomationElement);
function createWindowAsync(remoteWindowId, remoteProcessId, parentAutomationElement)
Public Function CreateWindowAsync (remoteWindowId As ULong, remoteProcessId As UInteger, parentAutomationElement As Object) As IAsyncOperation(Of RemoteAutomationWindow)

参数

remoteWindowId
UInt64

unsigned long long

uint64_t

窗口的唯一标识符。

remoteProcessId
UInt32

unsigned int

uint32_t

窗口的唯一进程标识符。

parentAutomationElement
Object

Platform::Object

IInspectable

窗口的父元素。

返回

返回用于控制异步操作的 IAsyncAction 对象。

属性

适用于