21 references to ContentType
System (3)
net\System\Net\HttpListenerResponse.cs (3)
81
return Headers[HttpResponseHeader.
ContentType
];
87
Headers.Remove(HttpResponseHeader.
ContentType
);
91
Headers.Set(HttpResponseHeader.
ContentType
, value);
System.Data.Services (4)
System\Data\Services\BatchServiceHost.cs (3)
201
get { return this.responseHeaders[HttpResponseHeader.
ContentType
]; }
202
set { this.responseHeaders[HttpResponseHeader.
ContentType
] = value; }
334
this.responseHeaders[HttpResponseHeader.
ContentType
] = args.ResponseContentType;
System\Data\Services\DataService.cs (1)
554
response.Headers[System.Net.HttpResponseHeader.
ContentType
] = contentType;
System.ServiceModel (6)
System\ServiceModel\Channels\HttpChannelHelpers.cs (5)
1256
if (message.Version == MessageVersion.None && httpResponseMessagePropertyFound && !string.IsNullOrEmpty(responseProperty.Headers[HttpResponseHeader.
ContentType
]))
1258
contentType = responseProperty.Headers[HttpResponseHeader.
ContentType
];
1259
responseProperty.Headers.Remove(HttpResponseHeader.
ContentType
);
1393
if (!string.IsNullOrEmpty(responseProperty.Headers[HttpResponseHeader.
ContentType
]))
1395
contentType = responseProperty.Headers[HttpResponseHeader.
ContentType
];
System\ServiceModel\Description\ServiceMetadataExtension.cs (1)
1292
responseProperty.Headers.Add(HttpResponseHeader.
ContentType
, contentType);
System.ServiceModel.Web (8)
System\ServiceModel\Description\WebScriptEnablingBehavior.cs (1)
422
responseProperty.Headers.Add(HttpResponseHeader.
ContentType
, outgoingContentType);
System\ServiceModel\Dispatcher\ContentTypeSettingDispatchMessageFormatter.cs (2)
77
if (string.IsNullOrEmpty(httpProperty.Headers[HttpResponseHeader.
ContentType
]))
79
httpProperty.Headers[HttpResponseHeader.
ContentType
] = contentType;
System\ServiceModel\Dispatcher\JavascriptCallbackMessageInspector.cs (1)
67
property.Headers[HttpResponseHeader.
ContentType
] = applicationJavaScriptMediaType;
System\ServiceModel\Dispatcher\WebErrorHandler.cs (1)
157
responseProperty.Headers[HttpResponseHeader.
ContentType
] = Atom10Constants.HtmlMediaType;
System\ServiceModel\Web\IncomingWebResponseContext.cs (1)
28
{ get { return EnsureMessageProperty().Headers[HttpResponseHeader.
ContentType
]; } }
System\ServiceModel\Web\OutgoingWebResponseContext.cs (2)
40
get { return this.MessageProperty.Headers[HttpResponseHeader.
ContentType
]; }
41
set { this.MessageProperty.Headers[HttpResponseHeader.
ContentType
] = value; }