MultiplayerSession.SetSessionCapabilities Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.