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 메서드를 호출할 때까지 사용 중인 리소스가 해제되지 않습니다.

적용 대상