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

◆ Attachment() [4/7]

System.Net.Mail.Attachment.Attachment ( string fileName,
ContentType contentType )
inline

Definition at line 73 of file Attachment.cs.

74 : base(fileName, contentType)
75 {
76 if (string.IsNullOrEmpty(contentType.Name))
77 {
78 Name = Path.GetFileName(fileName);
79 }
80 else
81 {
82 Name = contentType.Name;
83 }
84 base.MimePart.ContentDisposition = new ContentDisposition();
85 }
static ? string GetFileName(string? path)
Definition Path.cs:200
ContentDisposition? ContentDisposition
Definition Attachment.cs:52

References System.Net.Mail.Attachment.ContentDisposition, System.IO.Path.GetFileName(), System.Net.Mail.Attachment.Name, and System.Net.Mime.ContentType.Name.