SmartGlassAuxiliaryStream.Write Method

Writes outgoing data to the auxiliary stream, which either sends the data immediately or queues that data to send later if the Xbox One console is already sending too much data through the stream.

Syntax

public:
int32 Write(
         IBuffer^ buffer,
         out SmartGlassAuxiliaryStreamWriteStats writeStats
)  

Parameters

buffer
Type: IBuffer 

Specifies a referenced array of bytes to write to the auxiliary stream.

writeStats
Type: SmartGlassAuxiliaryStreamWriteStats 

Receives information about the total number of bytes already sent by the auxiliary stream and the number of bytes queued and still waiting to be sent.

Return value

Type: int32 

 0 indicates that the auxiliary stream is not connected. A nonzero value indcates that the auxiliary stream is connected.

Remarks

Both the Xbox One console and the SmartGlass-enabled device must open the auxiliary stream before you can start writing data to the stream.

Requirements

Namespace: Windows.Xbox.SmartGlass

Metadata: windows.winmd

See also

Reference

SmartGlassAuxiliaryStream.Read

SmartGlassAuxiliaryStream.Open

SmartGlassAuxiliaryStream Class

SmartGlassAuxiliaryStream Members

Windows.Xbox.SmartGlass Namespace