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