System.Data.OperationAbortedException Class

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

See Also: OperationAbortedException Members

Syntax

public sealed class OperationAbortedException : SystemException

Remarks

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.

Requirements

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