SelectionKey.IsWritable Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Tests whether this key's channel is ready for writing.
public bool IsWritable { [Android.Runtime.Register("isWritable", "()Z", "")] get; }
[<get: Android.Runtime.Register("isWritable", "()Z", "")>]
member this.IsWritable : bool
Property Value
true
if, and only if,
readyOps() & OP_WRITE
is nonzero
- Attributes
Exceptions
if the key has already been canceled.
Remarks
Tests whether this key's channel is ready for writing.
An invocation of this method of the form k.isWritable()
behaves in exactly the same way as the expression
<blockquote>
{@code
k.readyOps() & OP_WRITE != 0
}
</blockquote>
If this key's channel does not support write operations then this method always returns false
.
Java documentation for java.nio.channels.SelectionKey.isWritable()
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.