Sets the private payload that is returned when a remote host queries for the PrivatePayload.
public:
static void PublishPrivatePayload(
Array<unsigned char>^ payload
)
payload
Type: unsigned char
The payload to publish when this host is queried for PrivatePayload.
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.
Namespace: Windows.Xbox.Networking
Metadata: windows.winmd