system.net.mail.smtpclient
में दो विधियां हैं जिनके लिए मैं बहुत उलझन में हूं।इन दो तरीकों के बीच क्या अंतर है?
1। SendAsync (MailMessage, वस्तु)
Sends the specified e-mail message to an SMTP server for delivery. This method does not block the calling thread and allows the caller to pass an object to the method that is invoked when the operation completes.
-MSDN
2। SendMailAsync (MailMessage)
Sends the specified message to an SMTP server for delivery as an asynchronous operation.
-MSDN
सूचना है कि दो तरीकों के नाम अलग हैं, तो यह एक अधिभार नहीं है। यहां अंतर क्या है?
मैं दोनों तरीकों के लिए MSDN द्वारा दिए गए विवरण के रूप में बहुत स्पष्ट उत्तर नहीं रहा हूँ बहुत अस्पष्ट है (कम से कम मेरे लिए है।)
'SendMailAsync' लपेटता' SendAsync' नई 'async' सुविधाओं के साथ काम करने के लिए। –