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