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 | |
| 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。 |