Java.Net.MulticastSocket.LeaveGroup Method
Removes this socket from the specified multicast group.

Syntax

[Android.Runtime.Register("leaveGroup", "(Ljava/net/SocketAddress;Ljava/net/NetworkInterface;)V", "GetLeaveGroup_Ljava_net_SocketAddress_Ljava_net_NetworkInterface_Handler")]
public virtual void LeaveGroup (SocketAddress groupAddress, NetworkInterface netInterface)

Parameters

groupAddress
the multicast group to be left.
netInterface
the network interface on which the addresses should be dropped.

Exceptions

TypeReason
Java.IO.IOExceptionif the specified group address is not a multicast address.
Java.Lang.IllegalArgumentExceptionif groupAddress is null.

Remarks

Removes this socket from the specified multicast group.

[Android Documentation]

Requirements

Namespace: Java.Net
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1