3 instantiations of MailAddress
System.Net.Mail (3)
System\Net\Mail\MailAddress.cs (1)
110
result = new
MailAddress
(parsed.displayName, parsed.user, parsed.host, parsed.displayNameEncoding);
System\Net\Mail\MailAddressParser.cs (1)
44
results.Add(new
MailAddress
(parsedAddress.DisplayName, parsedAddress.User, parsedAddress.Host, null));
System\Net\Mail\MailPriority.cs (1)
50
_from = new
MailAddress
(from);
54 references to MailAddress
netstandard (1)
netstandard.cs (1)
1172
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Mail.
MailAddress
))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
657
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Mail.
MailAddress
))]
System.Net.Mail (52)
System\Net\Mail\MailAddress.cs (12)
80
/// Create a new <see cref="
MailAddress
"/>. Does not throw an exception if the MailAddress cannot be created.
83
/// <param name="result">When this method returns, contains the <see cref="
MailAddress
"/> instance if address parsing succeed</param>
84
/// <returns>A <see cref="bool"/> value that is true if the <see cref="
MailAddress
"/> was successfully created; otherwise, false.</returns>
85
public static bool TryCreate([NotNullWhen(true)] string? address, [NotNullWhen(true)] out
MailAddress
? result) => TryCreate(address, displayName: null, out result);
88
/// Create a new <see cref="
MailAddress
"/>. Does not throw an exception if the MailAddress cannot be created.
92
/// <param name="result">When this method returns, contains the <see cref="
MailAddress
"/> instance if address parsing succeed</param>
93
/// <returns>A <see cref="bool"/> value that is true if the <see cref="
MailAddress
"/> was successfully created; otherwise, false.</returns>
94
public static bool TryCreate([NotNullWhen(true)] string? address, string? displayName, [NotNullWhen(true)] out
MailAddress
? result) => TryCreate(address, displayName, displayNameEncoding: null, out result);
97
/// Create a new <see cref="
MailAddress
"/>. Does not throw an exception if the MailAddress cannot be created.
102
/// <param name="result">When this method returns, contains the <see cref="
MailAddress
"/> instance if address parsing succeed</param>
103
/// <returns>A <see cref="bool"/> value that is true if the <see cref="
MailAddress
"/> was successfully created; otherwise, false.</returns>
104
public static bool TryCreate([NotNullWhen(true)] string? address, string? displayName, Encoding? displayNameEncoding, [NotNullWhen(true)] out
MailAddress
? result)
System\Net\Mail\MailAddressCollection.cs (5)
13
public class MailAddressCollection : Collection<
MailAddress
>
26
protected override void SetItem(int index,
MailAddress
item)
33
protected override void InsertItem(int index,
MailAddress
item)
42
List<
MailAddress
> result = MailAddressParser.ParseMultipleAddresses(addresses);
57
foreach (
MailAddress
address in this)
System\Net\Mail\MailAddressParser.cs (3)
37
internal static List<
MailAddress
> ParseMultipleAddresses(string data)
39
List<
MailAddress
> results = new List<
MailAddress
>();
System\Net\Mail\MailMessage.cs (5)
59
public MailMessage(
MailAddress
from,
MailAddress
to)
68
public
MailAddress
? From
82
public
MailAddress
? Sender
95
public
MailAddress
? ReplyTo
System\Net\Mail\MailPriority.cs (12)
22
private
MailAddress
? _from;
23
private
MailAddress
? _sender;
25
private
MailAddress
? _replyTo;
57
internal Message(
MailAddress
from,
MailAddress
to) : this()
80
internal
MailAddress
? From
94
internal
MailAddress
? Sender
107
internal
MailAddress
? ReplyTo
361
MailAddress
sender = Sender ?? From!;
368
foreach (
MailAddress
address in To)
372
foreach (
MailAddress
address in CC)
376
foreach (
MailAddress
address in Bcc)
System\Net\Mail\SmtpClient.cs (7)
437
foreach (
MailAddress
address in message.To)
444
foreach (
MailAddress
address in message.Bcc)
451
foreach (
MailAddress
address in message.CC)
571
foreach (
MailAddress
address in message.To)
578
foreach (
MailAddress
address in message.Bcc)
585
foreach (
MailAddress
address in message.CC)
979
foreach (
MailAddress
address in recipients)
System\Net\Mail\SmtpCommands.cs (3)
516
internal static IAsyncResult BeginSend(SmtpConnection conn, ReadOnlySpan<byte> command,
MailAddress
from,
553
private static void PrepareCommand(SmtpConnection conn, ReadOnlySpan<byte> command,
MailAddress
from, bool allowUnicode)
569
internal static void Send(SmtpConnection conn, ReadOnlySpan<byte> command,
MailAddress
from, bool allowUnicode)
System\Net\Mail\SmtpTransport.cs (5)
149
internal IAsyncResult BeginSendMail(
MailAddress
sender, MailAddressCollection recipients,
193
internal MailWriter SendMail(
MailAddress
sender, MailAddressCollection recipients, string deliveryNotify,
204
foreach (
MailAddress
address in recipients)
241
private readonly
MailAddress
_from;
253
internal SendMailAsyncResult(SmtpConnection connection,
MailAddress
from, MailAddressCollection toCollection,