Language

AsynchronousSocketChannel Constructors

Definition

Overloads

Name Description
AsynchronousSocketChannel(AsynchronousChannelProvider)

Initializes a new instance of this class.

AsynchronousSocketChannel(IntPtr, JniHandleOwnership)

Creates a managed instance that represents an existing Java object.

AsynchronousSocketChannel(AsynchronousChannelProvider)

Initializes a new instance of this class.

[Android.Runtime.Register(".ctor", "(Ljava/nio/channels/spi/AsynchronousChannelProvider;)V", "", ApiSince=26)]
protected AsynchronousSocketChannel(Java.Nio.Channels.Spi.AsynchronousChannelProvider? provider);
[<Android.Runtime.Register(".ctor", "(Ljava/nio/channels/spi/AsynchronousChannelProvider;)V", "", ApiSince=26)>]
new Java.Nio.Channels.AsynchronousSocketChannel : Java.Nio.Channels.Spi.AsynchronousChannelProvider -> Java.Nio.Channels.AsynchronousSocketChannel

Parameters

provider
AsynchronousChannelProvider

The provider that created this channel

Attributes

Remarks

Initializes a new instance of this class.

Java documentation for java.nio.channels.AsynchronousSocketChannel.AsynchronousSocketChannel(java.nio.channels.spi.AsynchronousChannelProvider).

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

AsynchronousSocketChannel(IntPtr, JniHandleOwnership)

Creates a managed instance that represents an existing Java object.

protected AsynchronousSocketChannel(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Nio.Channels.AsynchronousSocketChannel : nativeint * Android.Runtime.JniHandleOwnership -> Java.Nio.Channels.AsynchronousSocketChannel

Parameters

javaReference
IntPtr

nativeint

A JNI reference to the Java object.

transfer
JniHandleOwnership

Specifies whether ownership of the JNI reference transfers to this instance.

Remarks

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