MailBee.NET Objects 4.0

Element.GetAttributesByName Method 

Returns all attributes with the specified name and contained in the current HTML element.

public TagAttributeReadOnlyCollection GetAttributesByName(
   string attrName
);

Parameters

attrName
The name of HTML attribute. attrName is case-insensitive.

Return Value

A reference to the collection of attrName attributes of the current HTML element.

Remarks

Usually the returned collection will contain 1 or 0 attributes. It's uncommon for an HTML tag to contain multiple attributes with the same name.

Exceptions

Exception Type Condition
MailBeeInvalidArgumentException attrName is a null reference (Nothing in Visual Basic).

See Also

Element Class | MailBee.Html Namespace