Jaa


MessageWebSocketMessageReceivedEventArgs.GetDataStream Method

Definition

Gets an IInputStream object (a message represented as a sequential stream of bytes) from the remote network destination on a MessageWebSocket object.

public:
 virtual IInputStream ^ GetDataStream() = GetDataStream;
IInputStream GetDataStream();
public IInputStream GetDataStream();
function getDataStream()
Public Function GetDataStream () As IInputStream

Returns

A message represented as a sequential stream of bytes.

Remarks

If the underlying TCP connection is suddenly terminated, GetDataStream throws the WININET_E_CONNECTION_ABORTED exception.

An empty message results in GetDataStream returning a valid IInputStream instance that yields zero bytes.

Applies to

See also