UdpAnySourceMulticastClient.UnblockSource(IPAddress) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
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 多播地址。
如果参数中的
如果在执行取消阻止源操作时出现套接字故障,则会引发一个 SocketException 。 收到的错误被指定为枚举的成员 SocketError 。