Returns the HTML attribute with the specified name.
A TagAttribute object representing the specified attribute, or a null reference (Nothing in Visual Basic) if the tag definition does not contain the specified attribute.
This method returns the first occurrence of the specified attribute. If you need to examine tags which may contain multiple occurrences of the same attribute, use GetAttributesByName method.
| Exception Type | Condition |
|---|---|
| MailBeeInvalidArgumentException | attrName is a null reference (Nothing in Visual Basic). |
Element Class | MailBee.Html Namespace