Elmah.ErrorMailModule.CreateHtmlAttachment C# (CSharp) Méthode

CreateHtmlAttachment() private static méthode

private static CreateHtmlAttachment ( string name, string html ) : System.Net.Mail.Attachment
name string
html string
Résultat System.Net.Mail.Attachment
        private static MailAttachment CreateHtmlAttachment(string name, string html)
        {
            Debug.AssertStringNotEmpty(name);
            Debug.AssertStringNotEmpty(html);

            return MailAttachment.CreateAttachmentFromString(html,
                name + ".html", Encoding.UTF8, "text/html");
        }