20 references to part
System (20)
net\System\Net\mail\HeaderCollection.cs (20)
33
if (id == MailHeaderID.ContentType &&
part
!= null) {
34
part
.ContentType = null;
35
} else if (id == MailHeaderID.ContentDisposition &&
part
is MimePart) {
36
((MimePart)
part
).ContentDisposition = null;
53
if (id == MailHeaderID.ContentType &&
part
!= null) {
54
part
.ContentType.PersistIfNeeded(this,false);
55
} else if (id == MailHeaderID.ContentDisposition &&
part
is MimePart) {
56
((MimePart)
part
).ContentDisposition.PersistIfNeeded(this, false);
73
if (id == MailHeaderID.ContentType &&
part
!= null) {
74
part
.ContentType.PersistIfNeeded(this,false);
75
} else if (id == MailHeaderID.ContentDisposition &&
part
is MimePart) {
76
((MimePart)
part
).ContentDisposition.PersistIfNeeded(this, false);
126
if (id == MailHeaderID.ContentType &&
part
!= null) {
127
part
.ContentType.Set(value.ToLower(CultureInfo.InvariantCulture), this);
128
} else if (id == MailHeaderID.ContentDisposition &&
part
is MimePart) {
129
((MimePart)
part
).ContentDisposition.Set(value.ToLower(CultureInfo.InvariantCulture), this);
159
if(id == MailHeaderID.ContentType &&
part
!= null) {
160
part
.ContentType.Set(value.ToLower(CultureInfo.InvariantCulture), this);
161
} else if (id == MailHeaderID.ContentDisposition &&
part
is MimePart) {
162
((MimePart)
part
).ContentDisposition.Set(value.ToLower(CultureInfo.InvariantCulture), this);