Skip to main content
Gets the number of sessions that matched a session query.

Syntax

Parameters

async   _In_
Type: XAsyncBlock*
The AsyncBlock for this operation. sessionCount   _Out_
Type: size_t*
Passes back the number of matching sessions.

Return value

Type: HRESULT HRESULT return code for this API operation.

Requirements

Header: multiplayer_c.h Library: Microsoft.Xbox.Services.142.C.lib or Microsoft.Xbox.Services.143.C.lib

See also

multiplayer_c
Last modified on October 29, 2026