UdpAnySourceMulticastClient.Dispose メソッド

定義

注意事項

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

マルチキャスト グループを離れ、 UdpAnySourceMulticastClient クラスの現在のインスタンスと 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の使用が完了したら、UdpAnySourceMulticastClientを呼び出します。 Dispose メソッドは、 UdpAnySourceMulticastClient を使用できない状態のままにします。 Disposeを呼び出した後、UdpAnySourceMulticastClientが占有していたメモリをガベージ コレクターが再利用できるように、UdpAnySourceMulticastClientへのすべての参照を解放する必要があります。

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

適用対象