Share via


MessageWebSocketMessageReceivedEventArgs.GetDataReader Method

Definition

Gets a DataReader object to read incoming data received from the remote network destination on a MessageWebSocket.

public:
 virtual DataReader ^ GetDataReader() = GetDataReader;
DataReader GetDataReader();
public DataReader GetDataReader();
function getDataReader()
Public Function GetDataReader () As DataReader

Returns

A DataReader object to read incoming data received from the remote network destination on a MessageWebSocket.

Remarks

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

An empty message results in GetDataReader returning a valid IDataReader instance with UnconsumedBufferLength set to 0.

Applies to

See also