ElementGetAttributesByName Method |
Returns all attributes with the specified name and contained in the current HTML element.
Namespace: MailBee.HtmlAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public TagAttributeReadOnlyCollection GetAttributesByName(
string attrName
)
Public Function GetAttributesByName (
attrName As String
) As TagAttributeReadOnlyCollection
Parameters
- attrName
- Type: SystemString
The name of HTML attribute. attrName is case-insensitive.
Return Value
Type:
TagAttributeReadOnlyCollectionA reference to the collection
of
attrName attributes of the current HTML element.
Exceptions 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.
See Also