using System;
using System.IO;
using System.Net.Mime;
using System.Text;
using Cpp2IlInjected;
namespace System.Net.Mail
{
/// Represents an attachment to an email.
// Token: 0x020002B0 RID: 688
[Token(Token = "0x20002B0")]
public class Attachment : AttachmentBase
{
/// Initializes a new instance of the class with the specified stream, name, and MIME type information.
/// A readable that contains the content for this attachment.
/// A that contains the value for the property of the associated with this attachment. This value can be .
/// A that contains the MIME Content-Header information for this attachment. This value can be .
///
/// is .
///
/// is not in the correct format.
// Token: 0x0600121C RID: 4636 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600121C")]
[Address(RVA = "0x8A0A70", Offset = "0x89FA70", VA = "0x1808A0A70")]
public Attachment(Stream contentStream, string name, string mediaType)
{
}
/// Gets the MIME content disposition for this attachment.
/// A that provides the presentation information for this attachment.
// Token: 0x170003AC RID: 940
// (get) Token: 0x0600121D RID: 4637 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170003AC")]
public ContentDisposition ContentDisposition
{
[Token(Token = "0x600121D")]
[Address(RVA = "0x4157E0", Offset = "0x4147E0", VA = "0x1804157E0")]
get
{
return null;
}
}
/// Gets or sets the MIME content type name value in the content type associated with this attachment.
/// A that contains the value for the content type represented by the property.
/// The value specified for a set operation is .
/// The value specified for a set operation is ("").
// Token: 0x170003AD RID: 941
// (get) Token: 0x0600121E RID: 4638 RVA: 0x00002050 File Offset: 0x00000250
// (set) Token: 0x0600121F RID: 4639 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x170003AD")]
public string Name
{
[Token(Token = "0x600121E")]
[Address(RVA = "0x8A0C20", Offset = "0x89FC20", VA = "0x1808A0C20")]
get
{
return null;
}
[Token(Token = "0x600121F")]
[Address(RVA = "0x8A0CF0", Offset = "0x89FCF0", VA = "0x1808A0CF0")]
set
{
}
}
/// Specifies the encoding for the .
/// An value that specifies the type of name encoding. The default value is determined from the name of the attachment.
// Token: 0x170003AE RID: 942
// (get) Token: 0x06001220 RID: 4640 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170003AE")]
public Encoding NameEncoding
{
[Token(Token = "0x6001220")]
[Address(RVA = "0x41CEF0", Offset = "0x41BEF0", VA = "0x18041CEF0")]
get
{
return null;
}
}
/// Creates a mail attachment using the content from the specified string, the specified MIME content type name, character encoding, and MIME header information for the attachment.
/// A that contains the content for this attachment.
/// The MIME content type name value in the content type associated with this attachment.
/// An . This value can be .
/// A that contains the MIME Content-Header information for this attachment. This value can be .
/// An object of type .
// Token: 0x06001221 RID: 4641 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001221")]
[Address(RVA = "0x8A0780", Offset = "0x89F780", VA = "0x1808A0780")]
public static Attachment CreateAttachmentFromString(string content, string name, Encoding contentEncoding, string mediaType)
{
return null;
}
// Token: 0x04000AC2 RID: 2754
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x4000AC2")]
private ContentDisposition contentDisposition;
// Token: 0x04000AC3 RID: 2755
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x4000AC3")]
private Encoding nameEncoding;
}
}