Releases all resources used by the System.Net.Mail.LinkedResourceCollection.
Call LinkedResourceCollection.Dispose when you are finished using the System.Net.Mail.LinkedResourceCollection. The LinkedResourceCollection.Dispose method leaves the System.Net.Mail.LinkedResourceCollection in an unusable state. After calling LinkedResourceCollection.Dispose, you must release all references to the System.Net.Mail.LinkedResourceCollection so the garbage collector can reclaim the memory that the System.Net.Mail.LinkedResourceCollection occupied. For more information, see Cleaning Up Unmanaged Resources and Implementing a Dispose Method.
This method invokes AlternateView.Dispose(bool) on all views in this collection. This method is called by the MailMessage.Dispose method. You do not need to call it in your application.
Always call LinkedResourceCollection.Dispose before you release your last reference to the System.Net.Mail.LinkedResourceCollection. Otherwise, the resources it is using are not freed until the garbage collector calls the System.Net.Mail.LinkedResourceCollection object's Finalize method.