Share via


NsdServiceInfo.Network Property

Definition

Get the network where the service can be found. -or- Set the network where the service can be found.

public Android.Net.Network? Network { [Android.Runtime.Register("getNetwork", "()Landroid/net/Network;", "", ApiSince=33)] get; [Android.Runtime.Register("setNetwork", "(Landroid/net/Network;)V", "", ApiSince=33)] set; }
[<get: Android.Runtime.Register("getNetwork", "()Landroid/net/Network;", "", ApiSince=33)>]
[<set: Android.Runtime.Register("setNetwork", "(Landroid/net/Network;)V", "", ApiSince=33)>]
member this.Network : Android.Net.Network with get, set

Property Value

Attributes

Remarks

Property getter documentation:

Get the network where the service can be found.

This is set if this NsdServiceInfo was obtained from NsdManager#discoverServices or NsdManager#resolveService, unless the service was found on a network interface that does not have a Network (such as a tethering downstream, where services are advertised from devices connected to this device via tethering).

Java documentation for android.net.nsd.NsdServiceInfo.getNetwork().

Property setter documentation:

Set the network where the service can be found.

Java documentation for android.net.nsd.NsdServiceInfo.setNetwork(android.net.Network).

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