InternetHeaders.NameCount

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!
Method

InternetHeaders.NameCount(Name as String) As Integer

Supported for all project types and targets.

Returns as an Integer the number of headers with the name passed to it.

Notes

Internet headers can have multiple headers with the same name.

Example

Var i As Integer
i = Str(mail.Headers.NameCount("X-Mailer"))