Proxy Constructors
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.
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
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
- 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.