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