UdpAnySourceMulticastClient.EndJoinGroup(IAsyncResult) 方法

定義

警告

此 API 現已淘汰。

完成對多點傳送群組的非同步加入群組作業。Completes the asynchronous join group operation to a multicast group.

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

參數

result
IAsyncResult

非同步加入作業的結果。The result of the asynchronous join operation.

屬性

例外狀況

result 是 null 參考 (在 Visual Basic 中為 Nothing)。result is a null reference (Nothing in Visual Basic).

嘗試存取通訊端時發生錯誤。An error occurred when attempting to access the socket.

備註

EndJoinGroup方法會完成對通訊端的非同步系結,並將作業聯結到多播群組。The EndJoinGroup method completes an asynchronous bind to a socket and join operation to a multicast group.

如果執行時間需要,此EndJoinGroup方法也會執行原則檢查,以確認允許用戶端存取多播群組。If required by the runtime, the EndJoinGroup method also performs a policy check to verify that the client is allowed to access the multicast group. 如果不允許用戶端存取, SocketException則會AccessDenied擲回。If the client is not allowed access, a SocketException is thrown with AccessDenied.

如果執行聯結群組作業時發生通訊端失敗, SocketException則會擲回。If there is a socket failure while performing the join group operation, a SocketException is thrown. 收到的錯誤會指定為SocketError列舉的成員。The error received is specified as a member of the SocketError enumeration.

適用於