UdpSingleSourceMulticastClient.Dispose メソッド

定義

注意事項

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

マルチキャスト グループを離れ、 UdpSingleSourceMulticastClient クラスの現在のインスタンスと Socketの基になるすべてのリソースを解放します。

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

実装

属性

注釈

Disposeの使用が完了したら、UdpSingleSourceMulticastClientを呼び出します。 Dispose メソッドは、UdpSingleSourceMulticastClientを使用できない状態のままにします。 Disposeを呼び出した後、UdpSingleSourceMulticastClientが占有していたメモリをガベージ コレクターが再利用できるように、UdpSingleSourceMulticastClientへのすべての参照を解放する必要があります。

Disposeへの最後の参照を解放する前に、必ずUdpSingleSourceMulticastClientを呼び出してください。 それ以外の場合、ガベージ コレクターが UdpSingleSourceMulticastClient オブジェクトの Finalize メソッドを呼び出すまで、使用しているリソースは解放されません。

適用対象