Edit

Share via


MultiplayerSession.SetArbitrationTimeouts(TimeSpan, TimeSpan) Method

Definition

Sets the arbitration timeouts for the session.

public void SetArbitrationTimeouts (Windows.Foundation.TimeSpan arbitrationTimeout, Windows.Foundation.TimeSpan forfeitTimeout);
abstract member SetArbitrationTimeouts : Windows.Foundation.TimeSpan * Windows.Foundation.TimeSpan -> unit
override this.SetArbitrationTimeouts : Windows.Foundation.TimeSpan * Windows.Foundation.TimeSpan -> unit
Public Sub SetArbitrationTimeouts (arbitrationTimeout As TimeSpan, forfeitTimeout As TimeSpan)

Parameters

arbitrationTimeout
Windows.Foundation.TimeSpan

The timeout for arbitration, in milliseconds representing the point at which results are finalized.

forfeitTimeout
Windows.Foundation.TimeSpan

The timeout for forfeit, in milliseconds representing the point at which, if the session has no active users, the match is canceled.

Implements

Microsoft.Xbox.Services.Multiplayer.__IMultiplayerSessionPublicNonVirtuals.SetArbitrationTimeouts(Windows.Foundation.TimeSpan,Windows.Foundation.TimeSpan)

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