HtmlKit.HtmlTagToken.HtmlTagToken C# (CSharp) Method

HtmlTagToken() public method

Initializes a new instance of the HtmlTagToken class.
Creates a new HtmlTagToken.
/// is null. /// -or- /// is null. ///
public HtmlTagToken ( string name, IEnumerable attributes, bool isEmptyElement ) : System
name string The name of the tag.
attributes IEnumerable The attributes.
isEmptyElement bool true if the tag is an empty element; otherwise, false.
return System
		public HtmlTagToken (string name, IEnumerable<HtmlAttribute> attributes, bool isEmptyElement) : base (HtmlTokenKind.Tag)
		{
			if (name == null)
				throw new ArgumentNullException ("name");

			if (attributes == null)
				throw new ArgumentNullException ("attributes");

			Attributes = new HtmlAttributeCollection (attributes);
			IsEmptyElement = isEmptyElement;
			Id = name.ToHtmlTagId ();
			Name = name;
		}

Same methods

HtmlTagToken::HtmlTagToken ( string name, bool isEndTag ) : System