共用方式為


Selector.Keys Method

Definition

Returns this selector's key set.

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

Returns

This selector's key set

Attributes

Remarks

Returns this selector's key set.

The key set is not directly modifiable. A key is removed only after it has been cancelled and its channel has been deregistered. Any attempt to modify the key set will cause an UnsupportedOperationException to be thrown.

The set is safe for use by multiple concurrent threads.

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

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