ElementGetAttributeByName Method
Returns the HTML attribute with the specified name.

Namespace: MailBee.Html
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax
public TagAttribute GetAttributeByName(
	string attrName
)

Parameters

attrName
Type: SystemString
The name of HTML attribute. attrName is case-insensitive.

Return Value

Type: TagAttribute
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.
Exceptions
ExceptionCondition
MailBeeInvalidArgumentExceptionattrName is a null reference (Nothing in Visual Basic).
Remarks
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(String) method.
See Also