Export (0) Print
Expand All

NetworkStream.Writeable Property

Gets a value that indicates whether the NetworkStream is writable.

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

member Writeable : bool with get, set

Property Value

Type: System.Boolean
true if data can be written to the stream; otherwise, false. The default value is true.

You must derive from the NetworkStream class to use the Writeable property. If Writeable is true, NetworkStream allows calls to the Write method. You can also determine whether a NetworkStream is writable by checking the publicly accessible CanWrite property.

The Writeable property is set when the NetworkStream is initialized.

In the following code example, the CanCommunicate property checks the Writeable property to determine if the NetworkStream is writable.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft