Edit

Share via


MultiplayerSession.SetTimeouts(TimeSpan, TimeSpan, TimeSpan, TimeSpan) Method

Definition

Sets the timeout values for the session.

public void SetTimeouts (Windows.Foundation.TimeSpan memberReservedTimeout, Windows.Foundation.TimeSpan memberInactiveTimeout, Windows.Foundation.TimeSpan memberReadyTimeout, Windows.Foundation.TimeSpan sessionEmptyTimeout);
abstract member SetTimeouts : Windows.Foundation.TimeSpan * Windows.Foundation.TimeSpan * Windows.Foundation.TimeSpan * Windows.Foundation.TimeSpan -> unit
override this.SetTimeouts : Windows.Foundation.TimeSpan * Windows.Foundation.TimeSpan * Windows.Foundation.TimeSpan * Windows.Foundation.TimeSpan -> unit
Public Sub SetTimeouts (memberReservedTimeout As TimeSpan, memberInactiveTimeout As TimeSpan, memberReadyTimeout As TimeSpan, sessionEmptyTimeout As TimeSpan)

Parameters

memberReservedTimeout
Windows.Foundation.TimeSpan

The timeout for a member reservation, in milliseconds. A value of 0 is allowed and indicates an immediate timeout. If the timeout is not specified, it is considered infinite.

memberInactiveTimeout
Windows.Foundation.TimeSpan

The timeout for a member to be considered inactive, in milliseconds. A value of 0 is allowed and indicates an immediate timeout. If the timeout is not specified, it is considered infinite.

memberReadyTimeout
Windows.Foundation.TimeSpan

The timeout for a member to be considered ready, in milliseconds. A value of 0 is allowed and indicates an immediate timeout. If the timeout is not specified, it is considered infinite.

sessionEmptyTimeout
Windows.Foundation.TimeSpan

The timeout for an empty session, in milliseconds. A value of 0 is allowed and indicates an immediate timeout. If the timeout is not specified, it is considered infinite.

Implements

Microsoft.Xbox.Services.Multiplayer.__IMultiplayerSessionPublicNonVirtuals.SetTimeouts(Windows.Foundation.TimeSpan,Windows.Foundation.TimeSpan,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