NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

SQLConnection.RollbackTransaction ()

Rolls back a transaction from being applied to the database with no parameters.

[Visual Basic]
Overloads Overrides Public Sub RollbackTransaction()
[C#]
public override void RollbackTransaction();
[C++]
public: override void RollbackTransaction();
[JScript]
public override function RollbackTransaction();

Exceptions

Exception Type Condition
Exception An error occured while trying to execute the transaction.

Remarks

Notes to Inheritors: When overriding RollbackTransaction in a derived class, be sure to call the base class's RollbackTransaction method.

Example

The following example creates a connection, opens it, begins a transaction, saves the transaction, commits the transaction, rollsback the transaction, then closes the connection.

See Also

SQLConnection Class | SQLConnection Members | System.Data.SQL Namespace | SQLConnection.RollbackTransaction Overload List | CommitTransaction | SaveTransaction | BeginTransaction