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!

Explicitly Completing Transactions

A transaction can be explicitly committed or aborted using Microsoft.ComServices. Page developers can explicitly call the SetComplete or SetAbort members to commit or abort an ongoing transaction.

// try to do something crucial to transaction completing
if( !DoSomeWork() ) 
{
  ContextUtil.SetAbort();
}