NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

TCPClient.GetStream

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;

Return Value

A network stream to read or write data.

Exceptions

Exception Type Condition
System.InvalideOperationException The TCPClient instance is not connected to a remote host.

See Also

TCPClient Class | TCPClient Members | System.Net.Sockets Namespace