Exchange Web Services .NET Class Library
Exchange Web Services .NET Class Library
Exchange Web Services .NET
Independentsoft.Msg
Attachment Class
Attachment Constructor
Attachment Properties
Attachment Methods

# Attachment Class

Represents an attachment to a message.
Inheritance Hierarchy
System
Object
Independentsoft.Msg
Attachment

Namespace: Independentsoft.Msg
Assembly: Independentsoft.Exchange (in Independentsoft.Exchange.dll) Version: 3.0.840.11238
Syntax
C#
VB
Copy

    public class Attachment

    Public Class Attachment

The Attachment type exposes the following members.

Constructors

| Name | Description
--- | --- | ---
| Attachment | Initializes a new instance of the Attachment class.
| Attachment(String) | Initializes a new instance of the Attachment class based on the supplied file.
| Attachment(String, Byte ) | Initializes a new instance of the Attachment class based on the supplied byte array.
| Attachment(String, Stream) | Initializes a new instance of the Attachment class based on the supplied stream.

Top
Properties

| Name | Description
--- | --- | ---
| AdditionalInfo | Provides file type information for a non-Windows attachment.
| ContentBase | Contains the content base header of a MIME message attachment.
| ContentDisposition | Contains the content disposition header of a MIME message attachment.
| ContentId | Contains the content identification header of a MIME message attachment.
| ContentLocation | Contains the content location header of a MIME message attachment.
| CreationTime | Contains the creation date and time of the attachment.
| Data | Contains binary attachment data.
| DataObject | Contains attachment's data as embedded object.
| DataObjectStorage | Gets or sets the data object storage.
| DisplayName | Contains the display name of the attachment.
| EmbeddedMessage | Contains Message object if the attachment is an embedded Message.
| Encoding | Contains the encoding for an attachment.
| Extension | Contains a file name extension that indicates the document type of an attachment.
| FileName | Contains an attachment's base file name and extension, excluding path.
| Flags | Contains flags for an attachment.
| IsContactPhoto | Indicates whether this attachment is a contact photo.
| IsHidden | Indicates whether an attachment is hidden from the end user.
| LastModificationTime | Contains the date and time when the attachment was last modified.
| LongFileName | Contains an attachment's long filename and extension, excluding path.
| LongPathName | Contains an attachment's fully-qualified long path and filename.
| Method | Contains a MAPI-defined constant representing the way the contents of an attachment can be accessed.
| MimeSequence | Contains the MIME sequence number of a MIME message attachment.
| MimeTag | Contains formatting information about a MIME attachment.
| ObjectType | Contains the type of the attachment.
| PathName | Contains an attachment's fully-qualified path and filename.
| RecordKey | Contains the record key for an attachment.
| Rendering | Contains a Microsoft Windows metafile with rendering information for an attachment.
| RenderingPosition | Contains rendering position index.
| Size | Contains attachment's size in bytes.
| Tag | Contains an object identifier specifying the application that supplied an attachment.
| TransportName | Contains the name of an attachment file modified so that it can be associated with TNEF messages.

Top
Methods

| Name | Description
--- | --- | ---
| Equals | (Inherited from Object.)
| Finalize | (Inherited from Object.)
| GetBuffer | Gets bytes to read from this attachment.
| GetBytes | Gets bytes to read from this attachment.
| GetHashCode | (Inherited from Object.)
| GetStream | Gets stream to read from this attachment.
| GetType | (Inherited from Object.)
| MemberwiseClone | (Inherited from Object.)
| Save(Stream) | Saves this attachment to the specified stream.
| Save(String) | Saves this attachment to the specified file.
| Save(String, Boolean) | Saves this attachment to the specified file.
| ToString | (Inherited from Object.)

Top
See Also

#### Reference

Independentsoft.Msg Namespace

Copyright 2025 Independentsoft

Send comments on this topic to support@independentsoft.de