C# Class System.Net.Mail.MailMessage

Inheritance: IDisposable
显示文件 Open project: dotnet/corefx Class Usage Examples

Private Properties

Property Type Description
BeginSend IAsyncResult
BuildDeliveryStatusNotificationString string
EndSend void
Send void
SetContent void

Public Methods

Method Description
Dispose ( ) : void
MailMessage ( ) : System
MailMessage ( System.Net.Mail.MailAddress from, System.Net.Mail.MailAddress to ) : System
MailMessage ( string from, string to ) : System
MailMessage ( string from, string to, string subject, string body ) : System

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
BeginSend ( System.Net.Mime.BaseWriter writer, bool sendEnvelope, bool allowUnicode, AsyncCallback callback, object state ) : IAsyncResult
BuildDeliveryStatusNotificationString ( ) : string
EndSend ( IAsyncResult asyncResult ) : void
Send ( System.Net.Mime.BaseWriter writer, bool sendEnvelope, bool allowUnicode ) : void
SetContent ( bool allowUnicode ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

MailMessage() public method

public MailMessage ( ) : System
return System

MailMessage() public method

public MailMessage ( System.Net.Mail.MailAddress from, System.Net.Mail.MailAddress to ) : System
from System.Net.Mail.MailAddress
to System.Net.Mail.MailAddress
return System

MailMessage() public method

public MailMessage ( string from, string to ) : System
from string
to string
return System

MailMessage() public method

public MailMessage ( string from, string to, string subject, string body ) : System
from string
to string
subject string
body string
return System