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: 0x020002B4 RID: 692
[Token(Token = "0x20002B4")]
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: 0x06001232 RID: 4658 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001232")]
[Address(RVA = "0x2226610", Offset = "0x2225410", VA = "0x182226610")]
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: 0x170003B0 RID: 944
// (get) Token: 0x06001233 RID: 4659 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170003B0")]
public ContentDisposition ContentDisposition
{
[Token(Token = "0x6001233")]
[Address(RVA = "0x3FA180", Offset = "0x3F8F80", VA = "0x1803FA180")]
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: 0x170003B1 RID: 945
// (get) Token: 0x06001234 RID: 4660 RVA: 0x00002050 File Offset: 0x00000250
// (set) Token: 0x06001235 RID: 4661 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x170003B1")]
public string Name
{
[Token(Token = "0x6001234")]
[Address(RVA = "0x22267C0", Offset = "0x22255C0", VA = "0x1822267C0")]
get
{
return null;
}
[Token(Token = "0x6001235")]
[Address(RVA = "0x2226890", Offset = "0x2225690", VA = "0x182226890")]
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: 0x170003B2 RID: 946
// (get) Token: 0x06001236 RID: 4662 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170003B2")]
public Encoding NameEncoding
{
[Token(Token = "0x6001236")]
[Address(RVA = "0x3F63D0", Offset = "0x3F51D0", VA = "0x1803F63D0")]
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: 0x06001237 RID: 4663 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001237")]
[Address(RVA = "0x2226320", Offset = "0x2225120", VA = "0x182226320")]
public static Attachment CreateAttachmentFromString(string content, string name, Encoding contentEncoding, string mediaType)
{
return null;
}
// Token: 0x04000ACF RID: 2767
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x4000ACF")]
private ContentDisposition contentDisposition;
// Token: 0x04000AD0 RID: 2768
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x4000AD0")]
private Encoding nameEncoding;
}
}