Base:
property
ContentType
System.Net.WebRequest.ContentType
11 writes to ContentType
System (1)
net\System\Net\webclient.cs (1)
943
((HttpWebRequest)request).
ContentType
= contentType;
System.Data.Services.Client (5)
System\Data\Services\Client\DataServiceContext.cs (4)
2048
request.
ContentType
= contentType;
4643
mediaRequest.
ContentType
= XmlConstants.MimeApplicationOctetStream;
4658
mediaRequest.
ContentType
= mimeType;
4679
mediaRequest.
ContentType
+= XmlConstants.MimeTypeUtf8Encoding;
System\Data\Services\Client\WebUtil.cs (1)
147
request.
ContentType
= header.Value;
System.Runtime.Remoting (1)
channels\http\httpclientchannel.cs (1)
678
httpWebRequest.
ContentType
= header.Value.ToString();
System.ServiceModel (3)
System\ServiceModel\Channels\HttpChannelHelpers.cs (3)
2406
httpWebRequest.
ContentType
= contentType;
2576
httpWebRequest.
ContentType
= value;
2686
httpWebRequest.
ContentType
= string.Format(CultureInfo.InvariantCulture, "{0}; action={1}", httpWebRequest.ContentType, action);
System.Web.Extensions (1)
ClientServices\Providers\ProxyHelper.cs (1)
49
request.
ContentType
= "application/json; charset=utf-8";
7 references to ContentType
System.Data.Services.Client (1)
System\Data\Services\Client\DataServiceContext.cs (1)
4674
HttpProcessUtility.ReadContentType(mediaRequest.
ContentType
, out mime, out encoding);
System.ServiceModel (6)
System\ServiceModel\Channels\HttpChannelHelpers.cs (6)
2659
if (httpWebRequest.
ContentType
.Contains("action")
2660
|| httpWebRequest.
ContentType
.ToUpperInvariant().IndexOf("ACTION", StringComparison.OrdinalIgnoreCase) != -1)
2664
ContentType parsedContentType = new ContentType(httpWebRequest.
ContentType
);
2679
new ProtocolException(SR.GetString(SR.HttpContentTypeFormatException, formatException.Message, httpWebRequest.
ContentType
), formatException));
2686
httpWebRequest.ContentType = string.Format(CultureInfo.InvariantCulture, "{0}; action={1}", httpWebRequest.
ContentType
, action);
3543
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ProtocolException(SR.GetString(SR.FramingContentTypeMismatch, request.
ContentType
, request.RequestUri), webException));