Share via


WriteTimeout Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets or sets the amount of time that a write operation blocks waiting for data.

Namespace:  System.Net.Sockets
Assembly:  System (in System.dll)

Syntax

'Declaration
Public Overrides Property WriteTimeout As Integer
public override int WriteTimeout { get; set; }
public:
virtual property int WriteTimeout {
    int get () override;
    void set (int value) override;
}
abstract WriteTimeout : int with get, set
override WriteTimeout : int with get, set
override function get WriteTimeout () : int
override function set WriteTimeout (value : int)

Property Value

Type: System. . :: . .Int32
A Int32 that specifies the amount of time, in milliseconds, that will elapse before a write operation fails. The default value, Infinite, specifies that the write operation does not time out.

Remarks

If the write operation does not complete within the time specified by this property, the write operation throws a IOException.

.NET Framework Security

See Also

Reference

NetworkStream Class

System.Net.Sockets Namespace