14 instantiations of ContentType
System (4)
net\System\Net\mail\Attachment.cs (1)
173
ContentType contentType = new
ContentType
(mediaType);
net\System\Net\mail\MimeBasePart.cs (2)
180
contentType = new
ContentType
();
193
contentType = new
ContentType
();
net\System\Net\mail\MimePart.cs (1)
111
contentType = new
ContentType
(mimeType);
System.ServiceModel (7)
System\ServiceModel\Channels\HttpChannelHelpers.cs (3)
309
ContentType parsedContentType = new
ContentType
(ContentType);
314
action = new
ContentType
(parsedContentType.Parameters[startInfoHeaderParam]).Parameters["action"];
2664
ContentType parsedContentType = new
ContentType
(httpWebRequest.ContentType);
System\ServiceModel\Channels\MessageEncoder.cs (1)
183
ContentType parsedContentType = new
ContentType
(contentType);
System\ServiceModel\Channels\TextMessageEncoder.cs (2)
204
Fx.Assert(charSet == (new
ContentType
(contentType)).CharSet,
216
ContentType parsedContentType = new
ContentType
(contentType);
System\ServiceModel\Description\MetadataExchangeClient.cs (1)
1321
contentType = new
ContentType
(contentTypeStr);
System.ServiceModel.Web (3)
System\ServiceModel\Dispatcher\MultiplexingFormatMapping.cs (2)
30
defaultContentType = new
ContentType
(this.DefaultMediaType) { CharSet = this.writeCharset };
56
contentType = new
ContentType
(acceptHeaderElement.MediaType);
System\ServiceModel\Web\Utility.cs (1)
170
ContentType contentTypeToReturn = new
ContentType
(contentType);
47 references to ContentType
System (18)
net\System\Net\mail\AlternateView.cs (3)
24
public AlternateView(string fileName,
ContentType
contentType) :
36
public AlternateView(Stream contentStream,
ContentType
contentType) :
82
public static AlternateView CreateAlternateViewFromString(string content,
ContentType
contentType){
net\System\Net\mail\Attachment.cs (9)
30
protected AttachmentBase(string fileName,
ContentType
contentType) {
46
protected AttachmentBase(Stream contentStream,
ContentType
contentType) {
79
internal void SetContentFromFile(string fileName,
ContentType
contentType) {
110
internal void SetContentFromString(string contentString,
ContentType
contentType) {
173
ContentType
contentType = new ContentType(mediaType);
247
public
ContentType
ContentType {
321
public Attachment(string fileName,
ContentType
contentType) :
347
public Attachment(Stream contentStream,
ContentType
contentType) :
432
public static Attachment CreateAttachmentFromString(string content,
ContentType
contentType){
net\System\Net\mail\LinkedResource.cs (3)
29
public LinkedResource(string fileName,
ContentType
contentType) :
41
public LinkedResource(Stream contentStream,
ContentType
contentType) :
70
public static LinkedResource CreateLinkedResourceFromString(string content,
ContentType
contentType){
net\System\Net\mail\MimeBasePart.cs (2)
10
protected
ContentType
contentType;
190
internal
ContentType
ContentType{
net\System\Net\mail\MimePart.cs (1)
120
internal void SetContent(Stream stream,
ContentType
contentType) {
System.ServiceModel (6)
System\ServiceModel\Channels\HttpChannelHelpers.cs (2)
309
ContentType
parsedContentType = new ContentType(ContentType);
2664
ContentType
parsedContentType = new ContentType(httpWebRequest.ContentType);
System\ServiceModel\Channels\MessageEncoder.cs (1)
183
ContentType
parsedContentType = new ContentType(contentType);
System\ServiceModel\Channels\TextMessageEncoder.cs (1)
216
ContentType
parsedContentType = new ContentType(contentType);
System\ServiceModel\Description\MetadataExchangeClient.cs (2)
1318
ContentType
contentType = null;
1341
internal static bool IsApplication(
ContentType
contentType)
System.ServiceModel.Web (23)
System\ServiceModel\Dispatcher\FormatSelectingMessageInspector.cs (4)
119
IList<
ContentType
> acceptHeaderElements = WebOperationContext.Current.IncomingRequest.GetAcceptHeaderElements();
137
ContentType
contentType;
159
ContentType
contentType = Web.Utility.GetContentType(contentTypeStr);
164
ContentType
responseContentType;
System\ServiceModel\Dispatcher\MultiplexingFormatMapping.cs (4)
22
ContentType
defaultContentType;
24
public
ContentType
DefaultContentType
47
public bool CanFormatResponse(
ContentType
acceptHeaderElement, bool matchCharset, out
ContentType
contentType)
System\ServiceModel\Web\IncomingWebRequestContext.cs (12)
27
Collection<
ContentType
> cachedAcceptHeaderElements;
224
public Collection<
ContentType
> GetAcceptHeaderElements()
232
cachedAcceptHeaderElements = new Collection<
ContentType
>();
237
List<
ContentType
> contentTypeList = new List<
ContentType
>();
247
ContentType
contentType = Utility.GetContentTypeOrNull(nextItem);
255
cachedAcceptHeaderElements = new Collection<
ContentType
>(contentTypeList);
363
class AcceptHeaderElementComparer : IComparer<
ContentType
>
367
public int Compare(
ContentType
x,
ContentType
y)
424
decimal GetQualityFactor(
ContentType
contentType)
442
bool HasParameters(
ContentType
contentType)
System\ServiceModel\Web\Utility.cs (3)
153
public static
ContentType
GetContentType(string contentType)
163
public static
ContentType
GetContentTypeOrNull(string contentType)
170
ContentType
contentTypeToReturn = new ContentType(contentType);