GameListEntry 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
提供遊戲的顯示資訊,例如其顯示資訊、啟動參數和遊戲模式設定、類別和啟動遊戲的方法。
public ref class GameListEntry sealed : IGameListEntry
public ref class GameListEntry sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Gaming.Preview.GamesEnumerationContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class GameListEntry final : IGameListEntry
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Gaming.Preview.GamesEnumerationContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class GameListEntry final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Gaming.Preview.GamesEnumerationContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class GameListEntry : IGameListEntry
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Gaming.Preview.GamesEnumerationContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class GameListEntry
Public NotInheritable Class GameListEntry
Implements IGameListEntry
Public NotInheritable Class GameListEntry
- 繼承
- 屬性
- 實作
Windows 需求
| 裝置系列 |
Windows Desktop Extension SDK (已於 10.0.10240.0 引進)
Windows Mobile Extension SDK (已於 10.0.10240.0 引進) |
| API contract |
Windows.Gaming.Preview.GamesEnumerationContract (已於 v1.0 引進)
|
| 應用程式功能 |
gameList
|
備註
此 API 不適用於所有應用程式。 除非您的開發人員帳戶是由 Microsoft 特別布建,否則呼叫這些 API 會在運行時間失敗。
版本歷程記錄
| Windows 版本 | SDK 版本 | 新增值 |
|---|---|---|
| 1709 | 16299 | GameModeConfiguration |
| 1709 | 16299 | LaunchableState |
| 1709 | 16299 | LauncherExecutable |
| 1709 | 16299 | LaunchParameters |
| 1709 | 16299 | SetLauncherExecutableFileAsync (IStorageFile) |
| 1709 | 16299 | SetLauncherExecutableFileAsync (IStorageFile,String) |
| 1709 | 16299 | SetTitleIdAsync |
| 1709 | 16299 | TitleId |
屬性
| Category |
相關聯 IGameListEntry 的目前 GameListCategory 值。 |
| DisplayInfo |
此 API 不適用於所有應用程式。 除非您的開發人員帳戶是由 Microsoft 特別布建,否則呼叫這些 API 會在運行時間失敗。 |
| GameModeConfiguration |
遊戲目前的 GameModeConfiguration 設定 |
| LaunchableState | |
| LauncherExecutable |
遊戲可執行文件的路徑。 |
| LaunchParameters |
遊戲目前的啟動參數。 |
| Properties |
取得與 IGameListEntry 物件相關的所有屬性集合。 |
| TitleId |
遊戲的 TitleId 可能會傳回空字串 |
方法
| LaunchAsync() |
啟動相關聯的遊戲。 |
| SetCategoryAsync(GameListCategory) |
設定 GameListCategory。 |
| SetLauncherExecutableFileAsync(IStorageFile) |
設定遊戲可執行檔和啟動參數的啟動路徑。 如果 LaunchableState 設定為 ByTitle,這可能會失敗。 |
| SetLauncherExecutableFileAsync(IStorageFile, String) |
設定遊戲可執行檔的啟動路徑。 如果 LaunchableState 設定為 ByTitle,這可能會失敗。 |
| SetTitleIdAsync(String) |
匯報 TitleID。 |