C# Class System.Net.Mail.SmtpClient

Inheritance: IDisposable
Afficher le fichier Open project: dotnet/corefx Class Usage Examples

Private Properties

Свойство Type Description
Abort void
CheckHostAndPort void
Complete void
ConnectCallback void
ContextSafeCompleteCallback void
GetConnection void
GetFileMailWriter System.Net.Mail.MailWriter
HandleCompletion void
Initialize void
IsSystemNetworkCredentialInCache bool
IsUnicodeSupported bool
SendAsync void
SendAsync void
SendCompletedWaitCallback void
SendMailAsync System.Threading.Tasks.Task
SendMailAsync System.Threading.Tasks.Task
SendMailCallback void
SendMessageCallback void
TimeOutCallback void
ValidateUnicodeRequirement void

Méthodes publiques

Méthode Description
Dispose ( ) : void
Send ( MailMessage message ) : void
Send ( string from, string recipients, string subject, string body ) : void
SendAsyncCancel ( ) : void
SmtpClient ( ) : System.ComponentModel
SmtpClient ( string host ) : System.ComponentModel
SmtpClient ( string host, int port ) : System.ComponentModel

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void
OnSendCompleted ( AsyncCompletedEventArgs e ) : void

Private Methods

Méthode Description
Abort ( ) : void
CheckHostAndPort ( ) : void
Complete ( Exception exception, IAsyncResult result ) : void
ConnectCallback ( IAsyncResult result ) : void
ContextSafeCompleteCallback ( IAsyncResult ar ) : void
GetConnection ( ) : void
GetFileMailWriter ( string pickupDirectory ) : System.Net.Mail.MailWriter
HandleCompletion ( TaskCompletionSource tcs, AsyncCompletedEventArgs e, SendCompletedEventHandler handler ) : void
Initialize ( ) : void
IsSystemNetworkCredentialInCache ( CredentialCache cache ) : bool
IsUnicodeSupported ( ) : bool
SendAsync ( MailMessage message, object userToken ) : void
SendAsync ( string from, string recipients, string subject, string body, object userToken ) : void
SendCompletedWaitCallback ( object operationState ) : void
SendMailAsync ( MailMessage message ) : System.Threading.Tasks.Task
SendMailAsync ( string from, string recipients, string subject, string body ) : System.Threading.Tasks.Task
SendMailCallback ( IAsyncResult result ) : void
SendMessageCallback ( IAsyncResult result ) : void
TimeOutCallback ( object state ) : void
ValidateUnicodeRequirement ( MailMessage message, MailAddressCollection recipients, bool allowUnicode ) : void

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

OnSendCompleted() protected méthode

protected OnSendCompleted ( AsyncCompletedEventArgs e ) : void
e System.ComponentModel.AsyncCompletedEventArgs
Résultat void

Send() public méthode

public Send ( MailMessage message ) : void
message MailMessage
Résultat void

Send() public méthode

public Send ( string from, string recipients, string subject, string body ) : void
from string
recipients string
subject string
body string
Résultat void

SendAsyncCancel() public méthode

public SendAsyncCancel ( ) : void
Résultat void

SmtpClient() public méthode

public SmtpClient ( ) : System.ComponentModel
Résultat System.ComponentModel

SmtpClient() public méthode

public SmtpClient ( string host ) : System.ComponentModel
host string
Résultat System.ComponentModel

SmtpClient() public méthode

public SmtpClient ( string host, int port ) : System.ComponentModel
host string
port int
Résultat System.ComponentModel