TransactionOptions::Timeout Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the timeout period for the transaction.

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

public:
property TimeSpan Timeout {
	TimeSpan get();
	void set(TimeSpan value);
}

Property Value

Type: System::TimeSpan

A TimeSpan value that specifies the timeout period for the transaction.

This property contains the maximum amount of time that the scope can be in existence, before it aborts the transaction.

.NET Framework
Available since 2.0
Return to top
Show: