ElementGetAttributeByName Method |
Returns the HTML attribute with the specified name.
Namespace: MailBee.HtmlAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public TagAttribute GetAttributeByName(
string attrName
)
Public Function GetAttributeByName (
attrName As String
) As TagAttribute
Parameters
- attrName
- Type: SystemString
The name of HTML attribute. attrName is case-insensitive.
Return Value
Type:
TagAttributeA
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 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