次の方法で共有


Selector.SelectedKeys Method

Definition

Returns this selector's selected-key set.

[Android.Runtime.Register("selectedKeys", "()Ljava/util/Set;", "GetSelectedKeysHandler")]
public abstract System.Collections.Generic.ICollection<Java.Nio.Channels.SelectionKey>? SelectedKeys ();
[<Android.Runtime.Register("selectedKeys", "()Ljava/util/Set;", "GetSelectedKeysHandler")>]
abstract member SelectedKeys : unit -> System.Collections.Generic.ICollection<Java.Nio.Channels.SelectionKey>

Returns

This selector's selected-key set

Attributes

Exceptions

if the selector is closed.

Remarks

Returns this selector's selected-key set.

Keys may be removed from, but not directly added to, the selected-key set. Any attempt to add an object to the key set will cause an UnsupportedOperationException to be thrown.

The selected-key set is not thread-safe.

Java documentation for java.nio.channels.Selector.selectedKeys().

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.

Applies to