Edit

Share via


MultiplayerSessionWriteMode Enum

Definition

Defines values used to indicate modes in MultiplayerService.WriteSessionAsync calls.

[Windows.Foundation.Metadata.Version(1)]
public enum MultiplayerSessionWriteMode
type MultiplayerSessionWriteMode = 
Public Enum MultiplayerSessionWriteMode
Inheritance
MultiplayerSessionWriteMode
Attributes
Windows.Foundation.Metadata.VersionAttribute

Fields

CreateNew 0

Create a new multiplayer session. Fails with HTTP_E_STATUS_PRECOND_FAILED if the session already exists.

SynchronizedUpdate 3

Updates an existing multiplayer session to resolve any conflict between two devices trying to perform an operation at the same time. Fails with HTTP_E_STATUS_PRECOND_FAILED (HTTP status 412) if eTag on the local session doesn't match the eTag on the server. Fails with the same error code if the session does not exist.

UpdateExisting 2

Updates an existing multiplayer session. Fails with HTTP_E_STATUS_PRECOND_FAILED if the session doesn't exist.

UpdateOrCreateNew 1

Either update or create a new session. It doesn't matter whether the session exists or not.

Applies to