Export (0) Print
Expand All

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.


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

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft