4 instantiations of ContentType
System.Net.Mail (4)
System\Net\Mail\Attachment.cs (1)
151ContentType contentType = new ContentType(mediaType);
System\Net\Mime\MimeBasePart.cs (2)
156_contentType ??= new ContentType(); 167get { return _contentType ??= new ContentType(); }
System\Net\Mime\MimePart.cs (1)
125_contentType = new ContentType(mimeType);
20 references to ContentType
netstandard (1)
netstandard.cs (1)
1185[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Mime.ContentType))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
673[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Mime.ContentType))]
System.Net.Mail (18)
System\Net\Mail\AlternateView.cs (3)
25public AlternateView(string fileName, ContentType? contentType) : 37public AlternateView(Stream contentStream, ContentType? contentType) : 77public static AlternateView CreateAlternateViewFromString(string content, ContentType? contentType)
System\Net\Mail\Attachment.cs (9)
30protected AttachmentBase(string fileName, ContentType? contentType) 50protected AttachmentBase(Stream contentStream, ContentType? contentType) 69internal void SetContentFromFile(string fileName, ContentType? contentType) 85internal void SetContentFromString(string content, ContentType? contentType) 151ContentType contentType = new ContentType(mediaType); 232public ContentType ContentType 307public Attachment(string fileName, ContentType contentType) : 335public Attachment(Stream contentStream, ContentType contentType) : 429public static Attachment CreateAttachmentFromString(string content, ContentType contentType)
System\Net\Mail\LinkedResource.cs (3)
23public LinkedResource(string fileName, ContentType? contentType) : 35public LinkedResource(Stream contentStream, ContentType? contentType) : 66public static LinkedResource CreateLinkedResourceFromString(string content, ContentType? contentType)
System\Net\Mime\MimeBasePart.cs (2)
14protected ContentType? _contentType; 165internal ContentType ContentType
System\Net\Mime\MimePart.cs (1)
134internal void SetContent(Stream stream, ContentType? contentType)