GridFSUploadStream.Abort Method |
Aborts an upload operation.
Namespace:
MongoDB.Driver.GridFS
Assembly:
MongoDB.Driver.GridFS (in MongoDB.Driver.GridFS.dll) Version: 2.22.0+75246110ed1247226fcc7f8eb2c54ffab745693e
Syntax public void Abort(
CancellationToken cancellationToken = default
)
Public Sub Abort (
Optional cancellationToken As CancellationToken = Nothing
)
member Abort :
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> unit
Parameters
- cancellationToken (Optional)
- Type: System.Threading.CancellationToken
The cancellation token.
Remarks
Any partial results already written to the server are deleted when Abort is called.
See Also