This documentation is archived and is not being maintained.

OperationContext.SetTransactionComplete Method

Commits the currently executing transaction.

Namespace:  System.ServiceModel
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public void SetTransactionComplete()


There is no transaction in the context.

This is only useful in operations that set OperationBehaviorAttribute.TransactionAutoComplete to false. Typically, services do this on some but not all operations. When OperationBehaviorAttribute.TransactionAutoComplete is false the transaction completes automatically. Use SetTransactionComplete in cases where it is not possible to determine at design-time whether an operation needs to complete the transaction.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0