MimeHeaderCollection.Item Property
Namespace: Rebex.Mime
Assembly: Rebex.Mail.dll (version 7.0.9448)
Item[Int32]
Gets the MimeHeader at the specified index.
Declaration
public MimeHeader this[int index] { get; set; }
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | index | The zero-based index of the MimeHeader to get. |
Property Value
| Type | Description |
|---|---|
| MimeHeader | MimeHeader of the specified index. |
Item[String]
Gets the MimeHeader of the specified name.
Declaration
public MimeHeader this[string headerName] { get; set; }
Parameters
| Type | Name | Description |
|---|---|---|
| String | headerName | The name of the header to get. |
Property Value
| Type | Description |
|---|---|
| MimeHeader | MimeHeader of the specified name. |
Remarks
If no header of the specified name is found, the return value is null.
If more than one headers are found, only the first is returned.
When assinging value, the first header of specified name is changed and remaining headers of the same name are removed.