문제

With .net v3.5 or less it was required to manually dispose attachments after sending an email using SMTP client, is this still required in .net v4?

도움이 되었습니까?

해결책

According to MSDN, the Dispose() method still exists in .net 4, and the notes still say you should call it, so I would assume nothing has changed.

다른 팁

Yes. The class is IDisposable and the MSDN example still calls Dispose on it.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top