Condividi tramite


MulticastSocket.NetworkInterface Property

Definition

Get the multicast network interface set. -or- Specify the network interface for outgoing multicast datagrams sent on this socket.

public virtual Java.Net.NetworkInterface? NetworkInterface { [Android.Runtime.Register("getNetworkInterface", "()Ljava/net/NetworkInterface;", "GetGetNetworkInterfaceHandler")] get; [Android.Runtime.Register("setNetworkInterface", "(Ljava/net/NetworkInterface;)V", "GetSetNetworkInterface_Ljava_net_NetworkInterface_Handler")] set; }
[<get: Android.Runtime.Register("getNetworkInterface", "()Ljava/net/NetworkInterface;", "GetGetNetworkInterfaceHandler")>]
[<set: Android.Runtime.Register("setNetworkInterface", "(Ljava/net/NetworkInterface;)V", "GetSetNetworkInterface_Ljava_net_NetworkInterface_Handler")>]
member this.NetworkInterface : Java.Net.NetworkInterface with get, set

Property Value

the multicast NetworkInterface currently set or null when no interface is set.

Attributes

Exceptions

if an error occurs.

Remarks

Property getter documentation:

Get the multicast network interface set.

Added in 1.4.

Java documentation for java.net.MulticastSocket.getNetworkInterface().

Property setter documentation:

Specify the network interface for outgoing multicast datagrams sent on this socket.

Added in 1.4.

Java documentation for java.net.MulticastSocket.setNetworkInterface(java.net.NetworkInterface).

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