Gets or sets the interval of time allowed for the service host to close.
Namespace:
System.ServiceModel
Assembly:
System.ServiceModel (in System.ServiceModel.dll)
Visual Basic (Declaration)
Public Property CloseTimeout As TimeSpan
Dim instance As ServiceHostBase
Dim value As TimeSpan
value = instance.CloseTimeout
instance.CloseTimeout = value
public TimeSpan CloseTimeout { get; set; }
public:
property TimeSpan CloseTimeout {
TimeSpan get ();
void set (TimeSpan value);
}
public function get CloseTimeout () : TimeSpan
public function set CloseTimeout (value : TimeSpan)
Property Value
Type:
System..::.TimeSpanThe Timespan that specifies the interval of time allowed for the service host to close.
TimeSpan closeTimeout = hostDefault.CloseTimeout;
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
.NET Framework
Supported in: 3.5, 3.0
Reference