Your name asks one thing, and your question asks another. therefore, I am going with your name.
If you want to know rollback transaction or rollback only, you can check
transaction.WasRolledBack // true if transaction is rolled back
Here transaction is an instance of ITransaction
Edit (based on your comment) :
var isRolledBack = false; using (var connection = new SqlConnection()) { using (var transaction = connection.BeginTransaction()) { try {
Now you can check the isRolledBack flag to see if the transaction is isRolledBack back.
source share