Edit

Share via


MultiplayerSession.SetSessionCapabilities Method

Definition

Sets the capabilities of the session.

public void SetSessionCapabilities (Microsoft.Xbox.Services.Multiplayer.MultiplayerSessionCapabilities capabilities);
abstract member SetSessionCapabilities : Microsoft.Xbox.Services.Multiplayer.MultiplayerSessionCapabilities -> unit
override this.SetSessionCapabilities : Microsoft.Xbox.Services.Multiplayer.MultiplayerSessionCapabilities -> unit
Public Sub SetSessionCapabilities (capabilities As MultiplayerSessionCapabilities)

Parameters

capabilities
MultiplayerSessionCapabilities

A collection of MultiplayerSessionCapabilities flags that apply to the MultiplayerSessionConstant's capabilities JSON object.

Implements

Microsoft.Xbox.Services.Multiplayer.__IMultiplayerSessionPublicNonVirtuals.SetSessionCapabilities(Microsoft.Xbox.Services.Multiplayer.MultiplayerSessionCapabilities)

Remarks

This can only be set when creating a new session.

After calling this method, the caller must use MultiplayerService.WriteSessionAsync to write batched local changes to the service.

Applies to