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

◆ CreateAttachmentFromString() [1/3]

static Attachment System.Net.Mail.Attachment.CreateAttachmentFromString ( string content,
ContentType contentType )
inlinestatic

Definition at line 146 of file Attachment.cs.

147 {
148 Attachment attachment = new Attachment();
149 attachment.SetContentFromString(content, contentType);
150 attachment.Name = contentType.Name;
151 return attachment;
152 }

References System.Net.Mail.Attachment.Attachment(), System.Net.Mime.ContentType.Name, and System.Net.Mail.AttachmentBase.SetContentFromString().