XmlEmptyElementSyntax Class
An element written as one self-closing tag.
public sealed class XmlEmptyElementSyntax : XmlNodeSyntax- Inheritance
XmlNodeSyntaxXmlEmptyElementSyntax
Properties
| Name | Description |
|---|---|
| Attributes | |
| LessThanToken | |
| Name | Gets the name of the element. |
| NameToken | |
| SlashGreaterThanToken |
Attributes
XmlEmptyElementSyntax.cspublic SyntaxList<XmlAttributeSyntax> Attributes { get; }Property value
No documentation is available.
LessThanToken
XmlEmptyElementSyntax.csNameToken
XmlEmptyElementSyntax.csSlashGreaterThanToken
XmlEmptyElementSyntax.csMethods
| Name | Description |
|---|---|
| Accept(XmlSyntaxVisitor) | |
| Accept<TResult>(XmlSyntaxVisitor<TResult>) | |
| GetAttribute(string) | Gets the first attribute called name, or null when there is none. |
| Update(SyntaxToken, SyntaxToken, SyntaxList<XmlAttributeSyntax>, SyntaxToken) | Returns this node with the given parts, or itself when nothing changed. |
| WithAttributes(SyntaxList<XmlAttributeSyntax>) | |
| WithLessThanToken(SyntaxToken) | |
| WithName(string) | Returns this element renamed. |
| WithNameToken(SyntaxToken) | |
| WithSlashGreaterThanToken(SyntaxToken) |
Accept overloads
Accept(XmlSyntaxVisitor)
XmlEmptyElementSyntax.cspublic override void Accept(XmlSyntaxVisitor visitor)Parameters
visitorXmlSyntaxVisitor
No documentation is available.
Accept<TResult>(XmlSyntaxVisitor<TResult>)
XmlEmptyElementSyntax.cspublic override TResult? Accept<TResult>(XmlSyntaxVisitor<TResult> visitor)No documentation is available.
GetAttribute(string)
XmlEmptyElementSyntax.csGets the first attribute called name, or null when there is none.
public XmlAttributeSyntax? GetAttribute(string name)Update(SyntaxToken, SyntaxToken, SyntaxList<XmlAttributeSyntax>, SyntaxToken)
XmlEmptyElementSyntax.csReturns this node with the given parts, or itself when nothing changed.
public XmlEmptyElementSyntax Update(SyntaxToken lessThanToken, SyntaxToken nameToken, SyntaxList<XmlAttributeSyntax> attributes, SyntaxToken slashGreaterThanToken)Parameters
lessThanTokenSyntaxTokennameTokenSyntaxTokenattributesSyntaxList<XmlAttributeSyntax>slashGreaterThanTokenSyntaxToken
Returns
WithAttributes(SyntaxList<XmlAttributeSyntax>)
XmlEmptyElementSyntax.cspublic XmlEmptyElementSyntax WithAttributes(SyntaxList<XmlAttributeSyntax> attributes)No documentation is available.
WithLessThanToken(SyntaxToken)
XmlEmptyElementSyntax.cspublic XmlEmptyElementSyntax WithLessThanToken(SyntaxToken lessThanToken)No documentation is available.
WithName(string)
XmlEmptyElementSyntax.csReturns this element renamed.
public XmlEmptyElementSyntax WithName(string name)WithNameToken(SyntaxToken)
XmlEmptyElementSyntax.cspublic XmlEmptyElementSyntax WithNameToken(SyntaxToken nameToken)No documentation is available.
WithSlashGreaterThanToken(SyntaxToken)
XmlEmptyElementSyntax.cspublic XmlEmptyElementSyntax WithSlashGreaterThanToken(SyntaxToken slashGreaterThanToken)No documentation is available.