Edit

Share via


MultiplayerSession.SetLocked(Boolean) Method

Definition

Call multiplayer_service::write_session after this to write batched local changes to the service. If this is called without multiplayer_service::write_session, this will only change the local session object but does not commit it to the service. If set to true, it would allow the members of the session to be locked, such that if a user leaves they are able to come back into the session but no other user could take that spot. If the session is locked, it must also be set to closed.

public void SetLocked (bool locked);
abstract member SetLocked : bool -> unit
override this.SetLocked : bool -> unit
Public Sub SetLocked (locked As Boolean)

Parameters

locked
Boolean

Implements

Microsoft.Xbox.Services.Multiplayer.__IMultiplayerSessionPublicNonVirtuals.SetLocked(System.Boolean)

Applies to