Class MsgAttachmentList
Represents a list of attachments in a MSG message.
Implements
Inherited Members
Namespace: DRIT.Mail.Msg
Assembly: DRIT.Mail.dll
Syntax
public class MsgAttachmentList : IList<MapiAttachment>, ICollection<MapiAttachment>, IEnumerable<MapiAttachment>, IEnumerable
Remarks
The corresponding attachment object storage entries and Attachment objects are stored in lists, where items have the same index.
The Attachment object storage representing the first Attachment object is named "__attach_version1.0_#00000000". The storage representing the second is named "__attach_version1.0_#00000001" and so on. The digit suffix is in hexadecimal. For example, the storage name for the eleventh Attachment object is "__attach_version1.0_#0000000A"
A .msg file can have a maximum of 2048 Attachment object storages.
2.2.2 Attachment Object Storage
Fields
View Source_msgFile
Stores the msg file value used by this type.
Declaration
protected MsgFile _msgFile
Field Value
| Type | Description |
|---|---|
| MsgFile |
Remarks
The corresponding attachment object storage entries and Attachment objects are stored in lists, where items have the same index.
The Attachment object storage representing the first Attachment object is named "__attach_version1.0_#00000000". The storage representing the second is named "__attach_version1.0_#00000001" and so on. The digit suffix is in hexadecimal. For example, the storage name for the eleventh Attachment object is "__attach_version1.0_#0000000A"
A .msg file can have a maximum of 2048 Attachment object storages.
2.2.2 Attachment Object Storage
Properties
View SourceCount
Gets or sets the count value.
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| int |
Remarks
The corresponding attachment object storage entries and Attachment objects are stored in lists, where items have the same index.
The Attachment object storage representing the first Attachment object is named "__attach_version1.0_#00000000". The storage representing the second is named "__attach_version1.0_#00000001" and so on. The digit suffix is in hexadecimal. For example, the storage name for the eleventh Attachment object is "__attach_version1.0_#0000000A"
A .msg file can have a maximum of 2048 Attachment object storages.
2.2.2 Attachment Object Storage
IsReadOnly
Gets a value indicating whether this object is read only.
Declaration
public bool IsReadOnly { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
The corresponding attachment object storage entries and Attachment objects are stored in lists, where items have the same index.
The Attachment object storage representing the first Attachment object is named "__attach_version1.0_#00000000". The storage representing the second is named "__attach_version1.0_#00000001" and so on. The digit suffix is in hexadecimal. For example, the storage name for the eleventh Attachment object is "__attach_version1.0_#0000000A"
A .msg file can have a maximum of 2048 Attachment object storages.
2.2.2 Attachment Object Storage
this[int]
The this[int] method.
Declaration
public MapiAttachment this[int index] { get; set; }
Parameters
| Type | Name | Description |
|---|---|---|
| int | index |
Property Value
| Type | Description |
|---|---|
| MapiAttachment |
Remarks
The corresponding attachment object storage entries and Attachment objects are stored in lists, where items have the same index.
The Attachment object storage representing the first Attachment object is named "__attach_version1.0_#00000000". The storage representing the second is named "__attach_version1.0_#00000001" and so on. The digit suffix is in hexadecimal. For example, the storage name for the eleventh Attachment object is "__attach_version1.0_#0000000A"
A .msg file can have a maximum of 2048 Attachment object storages.
2.2.2 Attachment Object Storage
Methods
View SourceAdd(MapiAttachment)
Adds the specified item.
Declaration
public void Add(MapiAttachment item)
Parameters
| Type | Name | Description |
|---|---|---|
| MapiAttachment | item | The item to process. |
Remarks
The corresponding attachment object storage entries and Attachment objects are stored in lists, where items have the same index.
The Attachment object storage representing the first Attachment object is named "__attach_version1.0_#00000000". The storage representing the second is named "__attach_version1.0_#00000001" and so on. The digit suffix is in hexadecimal. For example, the storage name for the eleventh Attachment object is "__attach_version1.0_#0000000A"
A .msg file can have a maximum of 2048 Attachment object storages.
2.2.2 Attachment Object Storage
Clear()
Processes the clear data.
Declaration
public void Clear()
Remarks
The corresponding attachment object storage entries and Attachment objects are stored in lists, where items have the same index.
The Attachment object storage representing the first Attachment object is named "__attach_version1.0_#00000000". The storage representing the second is named "__attach_version1.0_#00000001" and so on. The digit suffix is in hexadecimal. For example, the storage name for the eleventh Attachment object is "__attach_version1.0_#0000000A"
A .msg file can have a maximum of 2048 Attachment object storages.
2.2.2 Attachment Object Storage
Contains(MapiAttachment)
Processes the contains data.
Declaration
public bool Contains(MapiAttachment item)
Parameters
| Type | Name | Description |
|---|---|---|
| MapiAttachment | item | The item to process. |
Returns
| Type | Description |
|---|---|
| bool |
Remarks
The corresponding attachment object storage entries and Attachment objects are stored in lists, where items have the same index.
The Attachment object storage representing the first Attachment object is named "__attach_version1.0_#00000000". The storage representing the second is named "__attach_version1.0_#00000001" and so on. The digit suffix is in hexadecimal. For example, the storage name for the eleventh Attachment object is "__attach_version1.0_#0000000A"
A .msg file can have a maximum of 2048 Attachment object storages.
2.2.2 Attachment Object Storage
CopyTo(MapiAttachment[], int)
Copies the to.
Declaration
public void CopyTo(MapiAttachment[] array, int arrayIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| MapiAttachment[] | array | Specifies the array value. |
| int | arrayIndex | The array index. |
Remarks
The corresponding attachment object storage entries and Attachment objects are stored in lists, where items have the same index.
The Attachment object storage representing the first Attachment object is named "__attach_version1.0_#00000000". The storage representing the second is named "__attach_version1.0_#00000001" and so on. The digit suffix is in hexadecimal. For example, the storage name for the eleventh Attachment object is "__attach_version1.0_#0000000A"
A .msg file can have a maximum of 2048 Attachment object storages.
2.2.2 Attachment Object Storage
GetEnumerator()
Gets the enumerator.
Declaration
public IEnumerator<MapiAttachment> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<MapiAttachment> |
Remarks
The corresponding attachment object storage entries and Attachment objects are stored in lists, where items have the same index.
The Attachment object storage representing the first Attachment object is named "__attach_version1.0_#00000000". The storage representing the second is named "__attach_version1.0_#00000001" and so on. The digit suffix is in hexadecimal. For example, the storage name for the eleventh Attachment object is "__attach_version1.0_#0000000A"
A .msg file can have a maximum of 2048 Attachment object storages.
2.2.2 Attachment Object Storage
IndexOf(MapiAttachment)
Processes the index of data.
Declaration
public int IndexOf(MapiAttachment item)
Parameters
| Type | Name | Description |
|---|---|---|
| MapiAttachment | item | The item to process. |
Returns
| Type | Description |
|---|---|
| int |
Remarks
The corresponding attachment object storage entries and Attachment objects are stored in lists, where items have the same index.
The Attachment object storage representing the first Attachment object is named "__attach_version1.0_#00000000". The storage representing the second is named "__attach_version1.0_#00000001" and so on. The digit suffix is in hexadecimal. For example, the storage name for the eleventh Attachment object is "__attach_version1.0_#0000000A"
A .msg file can have a maximum of 2048 Attachment object storages.
2.2.2 Attachment Object Storage
Insert(int, MapiAttachment)
Processes the insert data.
Declaration
public void Insert(int index, MapiAttachment item)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The index within the data. |
| MapiAttachment | item | The item to process. |
Remarks
The corresponding attachment object storage entries and Attachment objects are stored in lists, where items have the same index.
The Attachment object storage representing the first Attachment object is named "__attach_version1.0_#00000000". The storage representing the second is named "__attach_version1.0_#00000001" and so on. The digit suffix is in hexadecimal. For example, the storage name for the eleventh Attachment object is "__attach_version1.0_#0000000A"
A .msg file can have a maximum of 2048 Attachment object storages.
2.2.2 Attachment Object Storage
Remove(MapiAttachment)
Removes the specified property.
Declaration
public bool Remove(MapiAttachment item)
Parameters
| Type | Name | Description |
|---|---|---|
| MapiAttachment | item | The item to process. |
Returns
| Type | Description |
|---|---|
| bool |
Remarks
The corresponding attachment object storage entries and Attachment objects are stored in lists, where items have the same index.
The Attachment object storage representing the first Attachment object is named "__attach_version1.0_#00000000". The storage representing the second is named "__attach_version1.0_#00000001" and so on. The digit suffix is in hexadecimal. For example, the storage name for the eleventh Attachment object is "__attach_version1.0_#0000000A"
A .msg file can have a maximum of 2048 Attachment object storages.
2.2.2 Attachment Object Storage
RemoveAt(int)
Removes the specified property.
Declaration
public void RemoveAt(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The index within the data. |
Remarks
The corresponding attachment object storage entries and Attachment objects are stored in lists, where items have the same index.
The Attachment object storage representing the first Attachment object is named "__attach_version1.0_#00000000". The storage representing the second is named "__attach_version1.0_#00000001" and so on. The digit suffix is in hexadecimal. For example, the storage name for the eleventh Attachment object is "__attach_version1.0_#0000000A"
A .msg file can have a maximum of 2048 Attachment object storages.
2.2.2 Attachment Object Storage