ServiceBehaviorAttribute.TransactionTimeout Property


Gets or sets the period within which a transaction must complete.

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

member TransactionTimeout : string with get, set

Property Value

Type: System.String

A TimeSpan object that represents the time within which transactions must complete or be automatically aborted.

Exception Condition

The value is null.


The value is less than TimeSpan.Zero or greater than TimeSpan.MaxValue.

This value sets the ChannelDispatcher.TransactionTimeout property. You can also set this property using the <serviceTimeouts> element in an application configuration file.

The following configuration file specifies a transaction timeout period of three minutes.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top