Click or drag to resize

BsonStreamAdapterEndWrite Method

Namespace:  MongoDB.Bson.IO
Assembly:  MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.14.0+2b37a1fe1cbdbe1a020b52b77f1197b6d77575e7
Syntax
public override void EndWrite(
	IAsyncResult asyncResult
)

Parameters

asyncResult
Type: SystemIAsyncResult
A reference to the outstanding asynchronous I/O request.
Exceptions
ExceptionCondition
ArgumentNullExceptionasyncResult is .
ArgumentExceptionA handle to the pending write operation is not available. -or- The pending operation does not support writing.
InvalidOperationExceptionasyncResult did not originate from a BeginWrite(Byte, Int32, Int32, AsyncCallback, Object) method on the current stream.
IOExceptionThe stream is closed or an internal error has occurred.
See Also