Rediger

Del via


UdpAnySourceMulticastClient.UnblockSource(IPAddress) Method

Definition

Caution

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Unblocks a source that was previously blocked by a call to the BlockSource(IPAddress) method so that multicast packets originating from it can be received.

public:
 void UnblockSource(System::Net::IPAddress ^ sourceAddress);
[System.Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
public void UnblockSource (System.Net.IPAddress sourceAddress);
[<System.Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)>]
member this.UnblockSource : System.Net.IPAddress -> unit
Public Sub UnblockSource (sourceAddress As IPAddress)

Parameters

sourceAddress
IPAddress

The address of the source to unblock.

Attributes

Exceptions

The multicast group has not yet been joined.

An error occurred when attempting to access the socket.

Remarks

The UnblockSource method unblocks multicast packets originating from a specified source address so they can be received. The specified source address must have previously been blocked by a call to the BlockSource method.

The client must have completed a join to the multicast group.

The sourceAddress parameter may be either an IPv6 or IPv4 multicast address.

If the specified source address in the sourceAddress parameter was not previously blocked by a call to the BlockSource method, a SocketException is thrown with AddressNotAvailable.

If there is a socket failure while performing the unblock source operation, a SocketException is thrown. The error received is specified as a member of the SocketError enumeration.

Applies to