Share via


GameService.PostResult Method

Definition

Terminate and post the results of a game.

public:
 static void PostResult(unsigned int gameVariant, GameServiceScoreKind scoreKind, long long scoreValue, GameServiceGameOutcome gameOutcome, IBuffer ^ buffer);
 static void PostResult(uint32_t const& gameVariant, GameServiceScoreKind const& scoreKind, long const& scoreValue, GameServiceGameOutcome const& gameOutcome, IBuffer const& buffer);
public static void PostResult(uint gameVariant, GameServiceScoreKind scoreKind, long scoreValue, GameServiceGameOutcome gameOutcome, IBuffer buffer);
function postResult(gameVariant, scoreKind, scoreValue, gameOutcome, buffer)
Public Shared Sub PostResult (gameVariant As UInteger, scoreKind As GameServiceScoreKind, scoreValue As Long, gameOutcome As GameServiceGameOutcome, buffer As IBuffer)

Parameters

gameVariant
UInt32

unsigned int

uint32_t

An app-specific game variant identifier.

scoreKind
GameServiceScoreKind

The kind of score in the result.

scoreValue
Int64

long long

long

The score value in the result.

gameOutcome
GameServiceGameOutcome

The outcome of the game.

buffer
IBuffer

A data buffer to be included with the result.

Remarks

All members of the Windows.Phone.System.UserProfile.GameServices.Core namespace can only be used by the XBox Live SDK. These APIs cannot be called except by applications that have the ID_CAP_GAMERSERVICES capability.

Applies to