Прочитај на енглеском Уреди

Делите путем


EntityConnection.ConnectionTimeout Property

Definition

Gets the number of seconds to wait when attempting to establish a connection before ending the attempt and generating an error.

C#
public override int ConnectionTimeout { get; }

Property Value

The time (in seconds) to wait for a connection to open. The default value is the underlying data provider's default time-out.

Exceptions

The value set is less than 0.

Remarks

Returns zero if the underlying data provider is not known.

Applies to

Производ Верзије
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1