Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ServiceBehaviorAttribute::TransactionTimeout Property

 

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

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

public:
property String^ TransactionTimeout {
	String^ get();
	void set(String^ value);
}

Property Value

Type: System::String^

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

Exception Condition
ArgumentNullException

The value is null.

ArgumentOutOfRangeException

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
Show:
© 2017 Microsoft