Returns the stream used to read and write data to the remote host.
[Visual Basic] Public Function GetStream() As NetworkStream [C#] public NetworkStream GetStream(); [C++] public: NetworkStream* GetStream(); [JScript] public function GetStream() : NetworkStream;
A network stream to read or write data.
Exception Type | Condition |
---|---|
System.InvalideOperationException | The TCPClient instance is not connected to a remote host. |
TCPClient Class | TCPClient Members | System.Net.Sockets Namespace