SelectionKey.Attachment Method

Definition

Retrieves the current attachment.

[Android.Runtime.Register("attachment", "()Ljava/lang/Object;", "")]
public Java.Lang.Object? Attachment ();
[<Android.Runtime.Register("attachment", "()Ljava/lang/Object;", "")>]
member this.Attachment : unit -> Java.Lang.Object

Returns

The object currently attached to this key, or null if there is no attachment

Attributes

Remarks

Retrieves the current attachment.

Java documentation for java.nio.channels.SelectionKey.attachment().

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