Link Property  
 

Returns a hyperlink found in the current message part.

Syntax

object.Link(Index)

Remarks

The Link property array is used to enumerate the hyperlinks which were found in the current message part. This property array is zero based, meaning that the first index value is zero. The total number of links in the current message part can be determined by checking the value of the LinkCount property.

The message contents are decoded and converted to UTF-8 before searching for matching links. If the message content uses HTML markup, it is possible for this property to return links in the HTML header as well as the body. Messages which are composed using Outlook will typically have links to XML namespaces like http://www.w3.org/TR/REC-html40.

This property can only be used to extract links from message text and cannot be used with file attachments or encoded binary data. For example, if the current message part contains encoded image data, the LinkCount property will return zero. Links which do not reference files, such as mailto: or data: will be ignored when searching the message.

Data Type

String

See Also

LinkCount Property, Part Property, Text Property