NetworkSpecifier 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
| Name | Description |
|---|---|
| NetworkSpecifier() |
Create a placeholder object. |
| NetworkSpecifier(IntPtr, JniHandleOwnership) |
Initializes a managed wrapper around an existing Java peer. |
NetworkSpecifier()
Create a placeholder object.
[Android.Runtime.Register(".ctor", "()V", "", ApiSince=29)]
public NetworkSpecifier();
- Attributes
Remarks
Create a placeholder object. Please use subclasses of this class in a NetworkRequest to request a network.
Java documentation for android.net.NetworkSpecifier.NetworkSpecifier().
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
NetworkSpecifier(IntPtr, JniHandleOwnership)
Initializes a managed wrapper around an existing Java peer.
protected NetworkSpecifier(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Net.NetworkSpecifier : nativeint * Android.Runtime.JniHandleOwnership -> Android.Net.NetworkSpecifier
Parameters
- javaReference
-
IntPtr
nativeint
A handle to the Java peer.
- transfer
- JniHandleOwnership
Specifies how ownership of javaReference is transferred.
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.