RemoteAutomationClientSession.CreateWindowAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立父系 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 物件。
- 屬性