MessageWebSocketMessageReceivedEventArgs.GetDataReader Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.