C# Class RazorMail.RazorMailMessage

Represents a razor e-mail message that can be sent using a concrete implementation of the RazorMail.IRazorMailSender interface.
Inheritance: IDisposable
Afficher le fichier Open project: wduffy/RazorMail Class Usage Examples

Méthodes publiques

Méthode Description
Dispose ( ) : void
RazorMailMessage ( string subject ) : System

Initialises an empty instance of the RazorMail.RazorMailmessage class.

RazorMailMessage ( string subject, Assembly assembly ) : System

Initialises an empty instance of the RazorMail.RazorMailmessage class.

Méthodes protégées

Méthode Description
CreateAlternateViews ( IParser parser ) : IEnumerable
EnsureValues ( ) : void
RenderTemplates ( ) : string

Renders the Razor templates and returns the result as a System.String.

Private Methods

Méthode Description
GetMailMessage ( IParser parser ) : MailMessage
RazorMailMessage ( string subject, Assembly assembly, IFileReader fileReader ) : System

Method Details

CreateAlternateViews() protected méthode

protected CreateAlternateViews ( IParser parser ) : IEnumerable
parser IParser
Résultat IEnumerable

Dispose() public méthode

public Dispose ( ) : void
Résultat void

EnsureValues() protected méthode

protected EnsureValues ( ) : void
Résultat void

RazorMailMessage() public méthode

Initialises an empty instance of the RazorMail.RazorMailmessage class.
public RazorMailMessage ( string subject ) : System
subject string A System.String that contains the subject text.
Résultat System

RazorMailMessage() public méthode

Initialises an empty instance of the RazorMail.RazorMailmessage class.
public RazorMailMessage ( string subject, Assembly assembly ) : System
subject string A System.String that contains the subject text.
assembly System.Reflection.Assembly A reference to the System.Reflection.Assembly that contains embedded resources used within this RazorMailMessage's template
Résultat System

RenderTemplates() protected méthode

Renders the Razor templates and returns the result as a System.String.
protected RenderTemplates ( ) : string
Résultat string