Stream.WriteTimeout Property
Gets or sets the amount of time a write operation blocks waiting for data.
Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Syntax
public virtual int WriteTimeout { get; set; }
Property Value
A Int32 that specifies the amount of time that will elapse before a write operation fails.
Remarks
This property returns the value returned by invoking the WriteTimeout property on the underlying stream. For set operations, the specified value sets the WriteTimeout value on the underlying stream.
If the underlying stream is a NetworkStream, WriteTimeout is in milliseconds and is set to Infinite by default so that write operations do not time out.
Version Information
Available in the .NET Micro Framework versions 3.0, 4.0, and 4.1.