다음을 통해 공유


Proxy Constructors

Definition

Overloads

Proxy(Proxy+Type, SocketAddress)

Creates an entry representing a PROXY connection.

Proxy(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

Proxy(Proxy+Type, SocketAddress)

Creates an entry representing a PROXY connection.

[Android.Runtime.Register(".ctor", "(Ljava/net/Proxy$Type;Ljava/net/SocketAddress;)V", "")]
public Proxy (Java.Net.Proxy.Type? type, Java.Net.SocketAddress? sa);
[<Android.Runtime.Register(".ctor", "(Ljava/net/Proxy$Type;Ljava/net/SocketAddress;)V", "")>]
new Java.Net.Proxy : Java.Net.Proxy.Type * Java.Net.SocketAddress -> Java.Net.Proxy

Parameters

type
Proxy.Type

the Type of the proxy

sa
SocketAddress

the SocketAddress for that proxy

Attributes

Exceptions

if the parameter type is set to Proxy.Type.DIRECT or the value for SocketAddress is null.

Remarks

Java documentation for java.net.Proxy.Proxy(java.net.Type, java.net.SocketAddress).

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

Proxy(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected Proxy (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Net.Proxy : nativeint * Android.Runtime.JniHandleOwnership -> Java.Net.Proxy

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

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