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

◆ MailMessage() [2/4]

System.Net.Mail.MailMessage.MailMessage ( string from,
string to )
inline

Definition at line 249 of file MailMessage.cs.

250 {
251 if (from == null)
252 {
253 throw new ArgumentNullException("from");
254 }
255 if (to == null)
256 {
257 throw new ArgumentNullException("to");
258 }
259 if (from.Length == 0)
260 {
261 throw new ArgumentException(System.SR.Format(System.SR.net_emptystringcall, "from"), "from");
262 }
263 if (to.Length == 0)
264 {
266 }
267 _message = new Message(from, to);
268 if (System.Net.NetEventSource.Log.IsEnabled())
269 {
271 }
272 }
readonly Message _message
static readonly System.Net.NetEventSource Log
static void Associate(object first, object second, [CallerMemberName] string memberName=null)
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string net_emptystringcall
Definition SR.cs:14
Definition SR.cs:7

References System.Net.Mail.MailMessage._message, System.Net.NetEventSource.Associate(), System.SR.Format(), System.Net.NetEventSource.Log, and System.SR.net_emptystringcall.