Udostępnij za pośrednictwem


StreamSocketListener.CancelIOAsync Method

Definition

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.

Applies to