共用方式為


CoreAppWindowPreview 類別

定義

表示應用程式視窗及其線程。

public ref class CoreAppWindowPreview sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 524288)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class CoreAppWindowPreview final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 524288)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class CoreAppWindowPreview
Public NotInheritable Class CoreAppWindowPreview
繼承
Object Platform::Object IInspectable CoreAppWindowPreview
屬性

Windows 需求

裝置系列
Windows 10, version 1903 (已於 10.0.18362.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v8.0 引進)

方法

GetIdFromWindow(AppWindow)

從指定的應用程式視窗擷取標識碼。

重要

CoreAppWindowPreview.GetIdFromWindow API 是有限存取功能的一部分, (請參閱 LimitedAccessFeatures 類別) 。 如需詳細資訊或要求解除鎖定令牌,請使用 LAF存取令牌要求表單

適用於