HtmlTag Class
Collapse the table of content
Expand the table of content

HtmlTag Class

The HtmlTag object is the foundation of the HTML document and holds the parsed structure of the document.

Namespace:  Microsoft.VisualStudio.TestTools.WebTesting
Assembly:  Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

public class HtmlTag

The HtmlTag type exposes the following members.

Public methodHtmlTagInitializes a new instance of the HtmlTag class.

Public propertyAttributesGets a collection of attributes associated with the HTML tag.
Public propertyNameGets or sets the name of the tag.

Public methodAddAttributeAdds an attribute to the HtmlTag collection.
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetAttributeValueGets the value of a specified attribute.
Public methodGetAttributeValueAsStringGets the value of a specified attribute in string format.
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

The tag object can represent any valid HTML tag found in the HTML document.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

© 2016 Microsoft