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

◆ Subject

string System.Net.Mail.Message.Subject
getsetpackage

Definition at line 116 of file Message.cs.

117 {
118 get
119 {
120 return _subject;
121 }
122 set
123 {
124 Encoding encoding = null;
125 try
126 {
128 }
129 catch (ArgumentException)
130 {
131 }
132 if (encoding != null && value != null)
133 {
134 try
135 {
138 }
139 catch (FormatException)
140 {
141 }
142 }
143 if (value != null && MailBnfHelper.HasCROrLF(value))
144 {
146 }
147 _subject = value;
148 if (_subject != null)
149 {
150 _subject = _subject.Normalize(NormalizationForm.FormC);
151 if (_subjectEncoding == null && !MimeBasePart.IsAscii(_subject, permitCROrLF: false))
152 {
154 }
155 }
156 }
157 }
Encoding _subjectEncoding
Definition Message.cs:45
static bool HasCROrLF(string data)
static bool IsAscii(string value, bool permitCROrLF)
static Encoding DecodeEncoding(string value)
static string DecodeHeaderValue(string value)
static string MailSubjectInvalidFormat
Definition SR.cs:166
Definition SR.cs:7
static Encoding GetEncoding(int codepage)
Definition Encoding.cs:593