Skip to main content
DatagramSocket.OutputStream | outputStream property

Applies to Windows and Windows Phone

Gets the output stream to write to the remote host.

Syntax


var outputStream = datagramSocket.outputStream;

public IOutputStream OutputStream { get; }

Public ReadOnly Property OutputStream As IOutputStream

public:
property IOutputStream^ OutputStream { 
   IOutputStream^ get();
}

Property value

Type: IOutputStream

A stream of bytes to be written to the remote host in a UDP datagram.

Remarks

This property is often used with the DataWriter object to write outgoing data to be sent to the remote network destination on a socket object.

Every write to the OutputStream results in a network packet being sent.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

Windows.Networking.Sockets
Windows::Networking::Sockets [C++]

Metadata

Windows.winmd

DLL

Windows.Networking.dll

Capabilities

ID_CAP_NETWORKING [Windows Phone]

See also

DatagramSocket
DataWriter
IOutputStream