GameBarServices 類別

定義

管理遊戲列的狀態。

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

Windows 需求

裝置系列
Windows Desktop Extension SDK (已於 10.0.15063.0 引進)
API contract
Windows.Media.Capture.GameBarContract (已於 v1.0 引進)
應用程式功能
gameBarServices

備註

如果背景服務因為閒置逾時而關閉,此 API 可能會擲回錯誤。

屬性

AppBroadcastServices

取得管理應用程式廣播的物件。

AppCaptureServices

取得管理應用程式擷取的物件。

SessionId

取得遊戲列會話的唯一識別碼。

TargetCapturePolicy

取得目標應用程式擷取的原則。

TargetInfo

取得 物件,提供應用程式擷取目標的中繼資料。

方法

DisableCapture()

停用應用程式擷取。

EnableCapture()

啟用應用程式擷取。

事件

CommandReceived

發生于收到遊戲列命令時。

適用於