QualityOfService.PublishPrivatePayload Method

Sets the private payload that is returned when a remote host queries for the PrivatePayload.

Syntax

public:
static void PublishPrivatePayload(
         Array<unsigned char>^ payload
)  

Parameters

payload
Type: unsigned char 

  The payload to publish when this host is queried for PrivatePayload.

Remarks

The maximum payload size is defined as MaxQualityOfServicePrivatePayloadSize. The data published can be used by applications to pass title specific state about the currently running game without creating a SecureDeviceAssociation. An example could be: number of slots available in game, or time left in the current round.

To clear the private payload, call ClearPrivatePayload.

Requirements

Namespace: Windows.Xbox.Networking

Metadata: windows.winmd

See also

Reference

QualityOfService Class

QualityOfService Members

Windows.Xbox.Networking Namespace