AppWindow.OwnerWindowId 屬性

定義

取得這個視窗擁有者的識別碼;如果未擁有,則為 0。

public:
 property WindowId OwnerWindowId { WindowId get(); };
WindowId OwnerWindowId();
public WindowId OwnerWindowId { get; }
var windowId = appWindow.ownerWindowId;
Public ReadOnly Property OwnerWindowId As WindowId

屬性值

此視窗擁有者的識別碼;如果未擁有,則為 0。

備註

如果您使用具有 ownerWindowsId 參數的Create方法多載建立此視窗,則此屬性會傳回擁有者視窗的識別碼。

適用於