Edit

Share via


MultiplayerService.SetSearchHandleAsync Method

Definition

Creates a search handle associated with the session. The visibility of the session is dependent on its search handle. While you can create an searchable session, it is not queryable and visible to others unless you have the associated search handle committed as well.

public Windows.Foundation.IAsyncAction SetSearchHandleAsync (Microsoft.Xbox.Services.Multiplayer.MultiplayerSearchHandleRequest searchHandleRequest);
abstract member SetSearchHandleAsync : Microsoft.Xbox.Services.Multiplayer.MultiplayerSearchHandleRequest -> Windows.Foundation.IAsyncAction
override this.SetSearchHandleAsync : Microsoft.Xbox.Services.Multiplayer.MultiplayerSearchHandleRequest -> Windows.Foundation.IAsyncAction
Public Function SetSearchHandleAsync (searchHandleRequest As MultiplayerSearchHandleRequest) As IAsyncAction

Parameters

searchHandleRequest
MultiplayerSearchHandleRequest

A search handle request object for the associated session

Returns

Windows.Foundation.IAsyncAction

The async object for notifying when the operation is completed.

Implements

Microsoft.Xbox.Services.Multiplayer.__IMultiplayerServicePublicNonVirtuals.SetSearchHandleAsync(Microsoft.Xbox.Services.Multiplayer.MultiplayerSearchHandleRequest)

Applies to