3 instantiations of AlternateView
System.Net.Mail (3)
System\Net\Mail\AlternateView.cs (3)
65AlternateView a = new AlternateView(); 72AlternateView a = new AlternateView(); 79AlternateView a = new AlternateView();
18 references to AlternateView
netstandard (1)
netstandard.cs (1)
1164[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Mail.AlternateView))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
649[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Mail.AlternateView))]
System.Net.Mail (16)
System\Net\Mail\AlternateView.cs (6)
63public static AlternateView CreateAlternateViewFromString(string content) 65AlternateView a = new AlternateView(); 70public static AlternateView CreateAlternateViewFromString(string content, Encoding? contentEncoding, string? mediaType) 72AlternateView a = new AlternateView(); 77public static AlternateView CreateAlternateViewFromString(string content, ContentType? contentType) 79AlternateView a = new AlternateView();
System\Net\Mail\AlternateViewCollection.cs (4)
8public sealed class AlternateViewCollection : Collection<AlternateView>, IDisposable 22foreach (AlternateView view in this) 45protected override void SetItem(int index, AlternateView item) 52protected override void InsertItem(int index, AlternateView item)
System\Net\Mail\MailMessage.cs (6)
27private AlternateView? _bodyView; 326_bodyView = AlternateView.CreateAlternateViewFromString(_body, _bodyEncoding, (_isBodyHtml ? MediaTypeNames.Text.Html : null)); 336_bodyView = AlternateView.CreateAlternateViewFromString(_body, _bodyEncoding, (_isBodyHtml ? MediaTypeNames.Text.Html : null)); 340_bodyView = AlternateView.CreateAlternateViewFromString(string.Empty); 365_bodyView = AlternateView.CreateAlternateViewFromString(_body, _bodyEncoding, null); 369foreach (AlternateView view in AlternateViews)