Terraria v1.4.4.9
Terraria source code documentation
|
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 | |
string? | Name [get, set] |
Encoding? | NameEncoding [get, set] |
ContentDisposition? | ContentDisposition [get] |
Stream | ContentStream [get] |
string | ContentId [get, set] |
ContentType | ContentType [get, set] |
TransferEncoding | TransferEncoding [get, set] |
Uri? | ContentLocation [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] { '<', '>' } |
Definition at line 7 of file Attachment.cs.