WriteTimeout Property
Collapse the table of content
Expand the table of content

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)

public:
[ComVisibleAttribute(false)]
property int WriteTimeout {
	virtual int get();
	virtual void set(int value);
}

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 8
.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