UdpAnySourceMulticastClient.UnblockSource(IPAddress) 方法

定義

警告

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

解除封鎖先前呼叫 BlockSource(IPAddress) 方法所封鎖的來源,以便可接收源自此來源的多點傳送封包。

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)

參數

sourceAddress
IPAddress

要解除封鎖之來源的位址。

屬性

例外狀況

尚未聯結多點傳送群組。

嘗試存取通訊端時發生錯誤。

備註

方法會 UnblockSource 解除封鎖源自指定來源位址的多播封包,以便接收這些封包。 指定的來源位址之前必須被方法的呼叫 BlockSource 封鎖。

客戶端必須已完成多播群組的聯結。

參數 sourceAddress 可以是IPv6或IPv4多播位址。

如果參數指定的 sourceAddress 來源位址先前未由方法的呼叫 BlockSource 封鎖, SocketException 則會使用 AddressNotAvailable擲回 。

如果執行解除封鎖來源作業時發生套接字失敗, SocketException 則會擲回 。 收到的錯誤會指定為 列舉的成員 SocketError

適用於