WriteTimeout Property

Stream.WriteTimeout Property

 

Gets or sets a value, in miliseconds, that determines how long the stream will attempt to write before timing out.

Namespace:   System.IO
Assembly:  mscorlib (in mscorlib.dll)

[ComVisibleAttribute(false)]
public virtual int WriteTimeout { get; set; }

Property Value

Type: System.Int32

A value, in miliseconds, that determines how long the stream will attempt to write before timing out.

Exception Condition
InvalidOperationException

The WriteTimeout method always throws an InvalidOperationException.

Notes to Inheritors:

The WriteTimeout property should be overridden to provide the appropriate behavior for the stream. If the stream does not support timing out, this property should raise an InvalidOperationException.

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