MessageWebSocketMessageReceivedEventArgs.GetDataStream 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 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.