Commits the currently executing transaction.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
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 in cases where it is not possible to determine at design-time whether an operation needs to complete the transaction.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
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.