2 writes to ContentType
System (2)
net\System\Net\mail\Attachment.cs (1)
253part.ContentType = value;
net\System\Net\mail\HeaderCollection.cs (1)
34part.ContentType = null;
14 references to ContentType
System (14)
net\System\Net\mail\Attachment.cs (4)
249return part.ContentType; 360MimePart.ContentType.Name = MimeBasePart.EncodeHeaderValue(name, encoding ,MimeBasePart.ShouldUseBase64Encoding(encoding)); 363MimePart.ContentType.Name = name; 376MimePart.ContentType.Name = value;
net\System\Net\mail\HeaderCollection.cs (4)
54part.ContentType.PersistIfNeeded(this,false); 74part.ContentType.PersistIfNeeded(this,false); 127part.ContentType.Set(value.ToLower(CultureInfo.InvariantCulture), this); 160part.ContentType.Set(value.ToLower(CultureInfo.InvariantCulture), this);
net\System\Net\mail\MailMessage.cs (1)
345wholeView.ContentType.Parameters["type"] = view.ContentType.MediaType;
net\System\Net\mail\MimeMultiPart.cs (4)
32ContentType.MediaType = "multipart" + "/" + type.ToString().ToLower(CultureInfo.InvariantCulture); 33ContentType.Boundary = GetNextBoundary(); 149context.writer = new MimeWriter(context.outputStream, ContentType.Boundary); 202MimeWriter mimeWriter = new MimeWriter(outputStream, ContentType.Boundary);
net\System\Net\mail\MimePart.cs (1)
114ContentType.Name = name;