GameList Class

Definition

A list of games on the local system that provides properties for launching and managing how a game runs in Game Mode.

public ref class GameList abstract 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 GameList 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 static class GameList
Public Class GameList
Inheritance
Object Platform::Object IInspectable GameList
Attributes

Windows requirements

Device family
Windows Desktop Extension SDK (introduced in 10.0.10240.0)
Windows Mobile Extension SDK (introduced in 10.0.10240.0)
API contract
Windows.Gaming.Preview.GamesEnumerationContract (introduced in v1.0)
App capabilities
gameList

Remarks

This API is not available to all apps. Unless your developer account is specially provisioned by Microsoft, calls to these APIs will fail at runtime.

Version history

Windows version SDK version Value added
1709 16299 MergeEntriesAsync
1709 16299 UnmergeEntryAsync

Methods

FindAllAsync()

Returns all GameListEntries.

FindAllAsync(String)

Returns all GameListEntries that match the provided packageFamilyName for the String parameter.

MergeEntriesAsync(GameListEntry, GameListEntry)

Explicity merge two GameListEntries to remove duplicates from the GameList.

UnmergeEntryAsync(GameListEntry)

Unmerge a GameListEntry if previously combined. The GameListEntry’s may be remerged in the new enumeration call.

Events

GameAdded

Indicates that a new GameListEntry has been added to the GameList.

GameRemoved

Indicates that a GameListEntry has been removed from the GameList.

GameUpdated

Indicates that a GameListEntry has been updated in the GameList

Applies to