Attachment Methods
Attachment Methods

The Attachment type exposes the following members.

Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodCode exampleGetAttachmentsFromTnef
Extracts all the files from TNEF container and returns them as AttachmentCollection.
Public methodCode exampleGetAttachmentsFromTnef(TnefExtractionOptions)
Extracts items of the specified kinds from TNEF container and returns them as AttachmentCollection.
Public methodCode exampleGetData
Gets the actual content of the attachment as a byte array.
Public methodCode exampleGetData(Int32, Int32)
Gets the specified portion of the actual content of the attachment as a byte array.
Public methodCode exampleGetEncapsulatedMessage
Gets the encapsulated e-mail message as a MailMessage object.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodCode exampleSave
Saves the content of the attachment into the specified file.
Public methodSaveAsync
async/await version of Save(String, Boolean).
Public methodCode exampleSaveToFolder
Saves the content of the attachment into a file in the specified folder.
Public methodSaveToFolderAsync
async/await version of SaveToFolder(String, Boolean).
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also