XmlDocumentTypeSyntax Class
A document type declaration.
public sealed class XmlDocumentTypeSyntax : XmlNodeSyntax- Inheritance
XmlNodeSyntaxXmlDocumentTypeSyntax
Properties
| Name | Description |
|---|---|
| ContentToken | |
| GreaterThanToken | |
| Name | Gets the name the declaration gives the root element. |
| NameToken | |
| StartDocumentTypeToken | |
| Value | Gets everything the declaration holds, which begins with the name. |
ContentToken
XmlDocumentTypeSyntax.csGreaterThanToken
XmlDocumentTypeSyntax.csNameToken
XmlDocumentTypeSyntax.csStartDocumentTypeToken
XmlDocumentTypeSyntax.csMethods
| Name | Description |
|---|---|
| Accept(XmlSyntaxVisitor) | |
| Accept<TResult>(XmlSyntaxVisitor<TResult>) | |
| Update(SyntaxToken, SyntaxToken, SyntaxToken, SyntaxToken) | Returns this node with the given parts, or itself when nothing changed. |
| WithContentToken(SyntaxToken) | |
| WithGreaterThanToken(SyntaxToken) | |
| WithName(string) | |
| WithNameToken(SyntaxToken) | |
| WithStartDocumentTypeToken(SyntaxToken) | |
| WithValue(string?) | Returns this declaration with different content. The name is taken from the front of the value. |
Accept overloads
Accept(XmlSyntaxVisitor)
XmlDocumentTypeSyntax.cspublic override void Accept(XmlSyntaxVisitor visitor)Parameters
visitorXmlSyntaxVisitor
No documentation is available.
Accept<TResult>(XmlSyntaxVisitor<TResult>)
XmlDocumentTypeSyntax.cspublic override TResult? Accept<TResult>(XmlSyntaxVisitor<TResult> visitor)No documentation is available.
Update(SyntaxToken, SyntaxToken, SyntaxToken, SyntaxToken)
XmlDocumentTypeSyntax.csReturns this node with the given parts, or itself when nothing changed.
public XmlDocumentTypeSyntax Update(SyntaxToken startDocumentTypeToken, SyntaxToken nameToken, SyntaxToken contentToken, SyntaxToken greaterThanToken)Parameters
startDocumentTypeTokenSyntaxTokennameTokenSyntaxTokencontentTokenSyntaxTokengreaterThanTokenSyntaxToken
Returns
WithContentToken(SyntaxToken)
XmlDocumentTypeSyntax.cspublic XmlDocumentTypeSyntax WithContentToken(SyntaxToken contentToken)No documentation is available.
WithGreaterThanToken(SyntaxToken)
XmlDocumentTypeSyntax.cspublic XmlDocumentTypeSyntax WithGreaterThanToken(SyntaxToken greaterThanToken)No documentation is available.
WithName(string)
XmlDocumentTypeSyntax.cspublic XmlDocumentTypeSyntax WithName(string name)WithNameToken(SyntaxToken)
XmlDocumentTypeSyntax.cspublic XmlDocumentTypeSyntax WithNameToken(SyntaxToken nameToken)No documentation is available.
WithStartDocumentTypeToken(SyntaxToken)
XmlDocumentTypeSyntax.cspublic XmlDocumentTypeSyntax WithStartDocumentTypeToken(SyntaxToken startDocumentTypeToken)No documentation is available.
WithValue(string?)
XmlDocumentTypeSyntax.csReturns this declaration with different content. The name is taken from the front of the value.
public XmlDocumentTypeSyntax WithValue(string? value)