2 types derived from MimeBasePart
System (2)
net\System\Net\mail\MimeMultiPart.cs (1)
9
internal class MimeMultiPart:
MimeBasePart
net\System\Net\mail\MimePart.cs (1)
13
internal class MimePart:
MimeBasePart
,IDisposable
61 references to MimeBasePart
System (61)
net\System\Net\mail\Attachment.cs (12)
125
if (
MimeBasePart
.IsAscii(contentString,false)) {
129
encoding = Text.Encoding.GetEncoding(
MimeBasePart
.defaultCharSet);
136
if (
MimeBasePart
.ShouldUseBase64Encoding(encoding)){
176
if (
MimeBasePart
.IsAscii(contentString,false)) {
180
encoding = Text.Encoding.GetEncoding(
MimeBasePart
.defaultCharSet);
188
if (
MimeBasePart
.ShouldUseBase64Encoding(encoding)){
355
if (!allowUnicode && name != null && name.Length != 0 && !
MimeBasePart
.IsAscii(name, false)) {
358
encoding = Encoding.GetEncoding(
MimeBasePart
.defaultCharSet);
360
MimePart.ContentType.Name =
MimeBasePart
.EncodeHeaderValue(name, encoding ,
MimeBasePart
.ShouldUseBase64Encoding(encoding));
372
Encoding nameEncoding =
MimeBasePart
.DecodeEncoding(value);
375
this.name =
MimeBasePart
.DecodeHeaderValue(value);
net\System\Net\mail\ContentDisposition.cs (5)
302
Encoding encoding =
MimeBasePart
.DecodeEncoding(value);
308
||
MimeBasePart
.IsAscii(value, false)) // Ascii
315
encoding = Encoding.GetEncoding(
MimeBasePart
.defaultCharSet);
316
builder.Append("\"" +
MimeBasePart
.EncodeHeaderValue(value, encoding,
317
MimeBasePart
.ShouldUseBase64Encoding(encoding)) + "\"");
net\System\Net\mail\ContentType.cs (7)
140
Encoding nameEncoding =
MimeBasePart
.DecodeEncoding(value);
142
value =
MimeBasePart
.DecodeHeaderValue(value);
223
Encoding encoding =
MimeBasePart
.DecodeEncoding(value);
229
||
MimeBasePart
.IsAscii(value, false)) // Ascii
236
encoding =Encoding.GetEncoding(
MimeBasePart
.defaultCharSet);
237
builder.Append("\"" +
MimeBasePart
.EncodeHeaderValue(value, encoding,
238
MimeBasePart
.ShouldUseBase64Encoding(encoding)) + "\"");
net\System\Net\mail\HeaderCollection.cs (2)
14
MimeBasePart
part = null;
115
if (!
MimeBasePart
.IsAscii(name,false)) {
net\System\Net\mail\MailAddress.cs (5)
34
this.displayNameEncoding = Encoding.GetEncoding(
MimeBasePart
.defaultCharSet);
74
this.displayNameEncoding = displayNameEncoding ?? Encoding.GetEncoding(
MimeBasePart
.defaultCharSet);
120
if (!allowUnicode && !
MimeBasePart
.IsAscii(userName, true))
140
if (!allowUnicode && !
MimeBasePart
.IsAscii(domain, true))
225
if (
MimeBasePart
.IsAscii(this.displayName, false) || allowUnicode)
net\System\Net\mail\MailMessage.cs (2)
200
if (
MimeBasePart
.IsAscii(body,true)) {
204
bodyEncoding = Text.Encoding.GetEncoding(
MimeBasePart
.defaultCharSet);
net\System\Net\mail\Message.cs (14)
23
MimeBasePart
content;
153
inputEncoding =
MimeBasePart
.DecodeEncoding(value);
160
value =
MimeBasePart
.DecodeHeaderValue(value);
174
if (subjectEncoding == null && !
MimeBasePart
.IsAscii(subject, false)) {
175
subjectEncoding = Encoding.GetEncoding(
MimeBasePart
.defaultCharSet);
222
internal virtual
MimeBasePart
Content {
334
this.headersEncoding = Encoding.GetEncoding(
MimeBasePart
.defaultCharSet);
365
this.headersEncoding = Encoding.GetEncoding(
MimeBasePart
.defaultCharSet);
442
MimeBasePart
.EncodeHeaderValue(subject, subjectEncoding,
443
MimeBasePart
.ShouldUseBase64Encoding(subjectEncoding),
457
this.headersEncoding = Encoding.GetEncoding(
MimeBasePart
.defaultCharSet);
477
if (
MimeBasePart
.IsAscii(values[j], false)
483
encodedValue =
MimeBasePart
.EncodeHeaderValue(values[j],
485
MimeBasePart
.ShouldUseBase64Encoding(this.headersEncoding),
net\System\Net\mail\MimeBasePart.cs (3)
28
return
MimeBasePart
.EncodeHeaderValue(value, encoding, base64Encoding, 0);
41
encoding = Encoding.GetEncoding(
MimeBasePart
.defaultCharSet);
250
internal MimePartAsyncResult(
MimeBasePart
part, object state, AsyncCallback callback):base(part,state,callback) {
net\System\Net\mail\MimeMultiPart.cs (11)
11
Collection<
MimeBasePart
> parts;
36
internal Collection<
MimeBasePart
> Parts {
39
parts = new Collection<
MimeBasePart
>();
109
MimeBasePart
part = (
MimeBasePart
)context.partsEnumerator.Current;
113
part = (
MimeBasePart
)context.partsEnumerator.Current;
151
MimeBasePart
part = (
MimeBasePart
)context.partsEnumerator.Current;
184
internal MimePartContext(BaseWriter writer, LazyAsyncResult result, IEnumerator<
MimeBasePart
> partsEnumerator) {
190
internal IEnumerator<
MimeBasePart
> partsEnumerator;
204
foreach (
MimeBasePart
part in Parts) {