SharpMimeTools Documented Class Library

SharpAttachment Members

SharpAttachment overview

Public Static Methods

Equals (inherited from Object)Determines whether the specified Object instances are considered equal.
ReferenceEquals (inherited from Object)Determines whether the specified Object instances are the same instance.

Public Instance Constructors

SharpAttachment Overloaded. Initializes a new instance of the SharpAttachment class.

Public Instance Properties

ContentID Gets or sets the Content-ID of this attachment.
CreationTime Gets or sets the time when the file associated with this attachment was created.
Inline Gets or sets value indicating whether the current instance is an inline attachment.
LastWriteTime Gets or sets the time when the file associated with this attachment was last written to.
MimeMediaSubType Gets or sets top-level media type for this SharpAttachment instance
MimeTopLevelMediaType Gets or sets SubType for this SharpAttachment instance
Name Gets or sets the name of the attachment.
SavedFile Gets the FileInfo of the saved file.
Size Gets or sets size (in bytes) for this SharpAttachment instance.
Stream Gets the Stream of the attachment.

Public Instance Methods

Close Closes the underling stream if it's open.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
Save Saves of the attachment to a file in the given path.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

SharpAttachment Class | anmar.SharpMimeTools Namespace