-api-id | -api-type |
---|---|
M:Windows.Networking.Sockets.StreamSocketListener.CancelIOAsync |
winrt method |
Cancels pending reads and writes over a StreamSocketListener object.
An asynchronous cancel operation on a StreamSocketListener object.
Call CancelIOAsync to cancel any pending reads or writes on this socket before you call TransferOwnership when your app is about to be suspended.
Note
CancelIOAsync cancels pending writes and reads in the Windows Runtime, but if there is a write buffer pending in networking drivers, it flushes the write.