UdpAnySourceMulticastClient.Dispose 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
주의
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 해제되지 않습니다.