System.Data.OperationAbortedException Class

This exception is thrown when an ongoing operation is aborted by the user.

See Also: OperationAbortedException Members


public sealed class OperationAbortedException : SystemException


This exception indicates that an operation has been aborted by the consumer of an API. For example, if the event handler of the System.Data.SqlClient.SqlBulkCopy.SqlRowsCopied event sets the Abort property to true in the System.Data.SqlClient.SqlRowsCopiedEventArgs object passed to the handler, the System.Data.SqlClient.SqlBulkCopy.WriteToServer method stops sending rows to the server and throws an System.Data.OperationAbortedException.


Namespace: System.Data
Assembly: System.Data (in System.Data.dll)
Assembly Versions:
Since: .NET 2.0