HtmlNodeExtensionsHasClass Method |
Helper method to check for existence of class name(s) on HTML element
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static bool HasClass(
this HtmlNode node,
params string[] classValueArray
)
<ExtensionAttribute>
Public Shared Function HasClass (
node As HtmlNode,
ParamArray classValueArray As String()
) As Boolean
Parameters
- node
- Type: HtmlNode
The code to test. - classValueArray
- Type: SystemString
The class name(s).
Return Value
Type:
BooleanTrue if the node has all the specified classes.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
HtmlNode. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also