Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Net.Mail.Attachment Class Reference

Public Member Functions

 Attachment (string fileName)
 
 Attachment (string fileName, string? mediaType)
 
 Attachment (string fileName, ContentType contentType)
 
 Attachment (Stream contentStream, string? name)
 
 Attachment (Stream contentStream, string? name, string? mediaType)
 
 Attachment (Stream contentStream, ContentType contentType)
 
void Dispose ()
 

Static Public Member Functions

static Attachment CreateAttachmentFromString (string content, string? name)
 
static Attachment CreateAttachmentFromString (string content, string? name, Encoding? contentEncoding, string? mediaType)
 
static Attachment CreateAttachmentFromString (string content, ContentType contentType)
 

Protected Member Functions

virtual void Dispose (bool disposing)
 

Package Functions

 Attachment ()
 
void SetContentTypeName (bool allowUnicode)
 
override void PrepareForSending (bool allowUnicode)
 
void SetContentFromFile (string fileName, ContentType contentType)
 
void SetContentFromFile (string fileName, string mediaType)
 
void SetContentFromString (string content, ContentType contentType)
 
void SetContentFromString (string content, Encoding encoding, string mediaType)
 

Package Attributes

bool disposed
 

Properties

stringName [get, set]
 
EncodingNameEncoding [get, set]
 
ContentDispositionContentDisposition [get]
 
Stream ContentStream [get]
 
string ContentId [get, set]
 
ContentType ContentType [get, set]
 
TransferEncoding TransferEncoding [get, set]
 
UriContentLocation [get, set]
 
MimePart MimePart [get]
 

Private Attributes

string _name
 
Encoding _nameEncoding
 
readonly MimePart _part = new MimePart()
 

Static Private Attributes

static readonly char[] s_contentCIDInvalidChars = new char[2] { '<', '>' }
 

Detailed Description

Definition at line 7 of file Attachment.cs.


The documentation for this class was generated from the following file: