4 instantiations of ContentType
System.Net.Mail (4)
System\Net\Mail\Attachment.cs (1)
151
ContentType contentType = new
ContentType
(mediaType);
System\Net\Mime\MimeBasePart.cs (2)
156
_contentType ??= new
ContentType
();
167
get { 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)
25
public AlternateView(string fileName,
ContentType
? contentType) :
37
public AlternateView(Stream contentStream,
ContentType
? contentType) :
77
public static AlternateView CreateAlternateViewFromString(string content,
ContentType
? contentType)
System\Net\Mail\Attachment.cs (9)
30
protected AttachmentBase(string fileName,
ContentType
? contentType)
50
protected AttachmentBase(Stream contentStream,
ContentType
? contentType)
69
internal void SetContentFromFile(string fileName,
ContentType
? contentType)
85
internal void SetContentFromString(string content,
ContentType
? contentType)
151
ContentType
contentType = new ContentType(mediaType);
232
public
ContentType
ContentType
307
public Attachment(string fileName,
ContentType
contentType) :
335
public Attachment(Stream contentStream,
ContentType
contentType) :
429
public static Attachment CreateAttachmentFromString(string content,
ContentType
contentType)
System\Net\Mail\LinkedResource.cs (3)
23
public LinkedResource(string fileName,
ContentType
? contentType) :
35
public LinkedResource(Stream contentStream,
ContentType
? contentType) :
66
public static LinkedResource CreateLinkedResourceFromString(string content,
ContentType
? contentType)
System\Net\Mime\MimeBasePart.cs (2)
14
protected
ContentType
? _contentType;
165
internal
ContentType
ContentType
System\Net\Mime\MimePart.cs (1)
134
internal void SetContent(Stream stream,
ContentType
? contentType)