Description
-
References collection of headers for the message.
Property type
-
An ImapMessageHeaders
object.
Syntax
-
object.Headers
The Headers Property syntax has these parts:
object |
An expression evaluating to an object
of type ImapMessage. |
Remarks
- This property gives you access to collection of all
headers contained in the message. You can get their total
Count,
and access each and one of them, when needed.
To access specific header Item in the collection, you can
reference it by its index, or by its name. For example, if
you want to find sender of the message you can do it like
this:
-
-
Message.Headers.Item("From").Value
-
- or
-
-
Message.Headers("From").Value
-
- and in most cases you don't have to use Value at all
- you can just use
-
- Messages.Headers("From") =
"WeOnlyDo!"
-
- and it will work.
|