StreamSocketListener.CancelIOAsync 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.
Cancels pending reads and writes over a StreamSocketListener object.
public:
virtual IAsyncAction ^ CancelIOAsync() = CancelIOAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction CancelIOAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction CancelIOAsync();
function cancelIOAsync()
Public Function CancelIOAsync () As IAsyncAction
Returns
An asynchronous cancel operation on a StreamSocketListener object.
- Attributes
Remarks
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.