CloseTimeout Property
Collapse the table of content
Expand the table of content

Binding.CloseTimeout Property


Gets or sets the interval of time provided for a connection to close before the transport raises an exception.

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

public TimeSpan CloseTimeout { get; set; }

Property Value

Type: System.TimeSpan

The TimeSpan that specifies how long the close operation has to complete before timing out. The default value is 1 minute.

Exception Condition

The value is less than zero or too large.

The value of this property is used by the channels and listeners produced by the factories of the binding.

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
© 2016 Microsoft