AbstractSelector.Register(AbstractSelectableChannel, Int32, Object) Method
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.
Registers the given channel with this selector.
[Android.Runtime.Register("register", "(Ljava/nio/channels/spi/AbstractSelectableChannel;ILjava/lang/Object;)Ljava/nio/channels/SelectionKey;", "GetRegister_Ljava_nio_channels_spi_AbstractSelectableChannel_ILjava_lang_Object_Handler")]
protected abstract Java.Nio.Channels.SelectionKey? Register (Java.Nio.Channels.Spi.AbstractSelectableChannel? ch, int ops, Java.Lang.Object? att);
[<Android.Runtime.Register("register", "(Ljava/nio/channels/spi/AbstractSelectableChannel;ILjava/lang/Object;)Ljava/nio/channels/SelectionKey;", "GetRegister_Ljava_nio_channels_spi_AbstractSelectableChannel_ILjava_lang_Object_Handler")>]
abstract member Register : Java.Nio.Channels.Spi.AbstractSelectableChannel * int * Java.Lang.Object -> Java.Nio.Channels.SelectionKey
Parameters
The channel to be registered
- ops
- Int32
The initial interest set, which must be valid
- att
- Object
The initial attachment for the resulting key
Returns
A new key representing the registration of the given channel with this selector
- Attributes
Remarks
Registers the given channel with this selector.
This method is invoked by a channel's AbstractSelectableChannel#register register
method in order to perform the actual work of registering the channel with this selector.
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.