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

Name Value Description
CreateNew 0

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

UpdateOrCreateNew 1

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

UpdateExisting 2

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

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.

Applies to