Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ EndSend()

void System.Net.Mail.Message.EndSend ( IAsyncResult asyncResult)
inlinepackage

Definition at line 302 of file Message.cs.

303 {
304 if (asyncResult == null)
305 {
306 throw new ArgumentNullException("asyncResult");
307 }
308 if (Content != null)
309 {
310 Content.EndSend(asyncResult);
311 return;
312 }
313 if (!(asyncResult is System.Net.LazyAsyncResult lazyAsyncResult) || lazyAsyncResult.AsyncObject != this)
314 {
316 }
317 if (lazyAsyncResult.EndCalled)
318 {
320 }
321 lazyAsyncResult.InternalWaitForCompletion();
322 lazyAsyncResult.EndCalled = true;
323 if (lazyAsyncResult.Result is Exception source)
324 {
326 }
327 }
static string net_io_invalidendcall
Definition SR.cs:22
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string net_io_invalidasyncresult
Definition SR.cs:20
Definition SR.cs:7

References System.asyncResult, System.SR.Format(), System.SR.net_io_invalidasyncresult, System.SR.net_io_invalidendcall, System.source, and System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw().

Referenced by System.Net.Mail.MailMessage.EndSend().