XmlDocumentTypeSyntax Class

A document type declaration.

public sealed class XmlDocumentTypeSyntax : XmlNodeSyntax
Inheritance
XmlNodeSyntax XmlDocumentTypeSyntax

Properties

NameDescription
ContentToken
GreaterThanToken
NameGets the name the declaration gives the root element.
NameToken
StartDocumentTypeToken
ValueGets everything the declaration holds, which begins with the name.
public SyntaxToken ContentToken { get; }

Property value

SyntaxToken

No documentation is available.

GreaterThanToken

XmlDocumentTypeSyntax.cs
public SyntaxToken GreaterThanToken { get; }

Property value

SyntaxToken

No documentation is available.

Gets the name the declaration gives the root element.

public string Name { get; }

Property value

string

public SyntaxToken NameToken { get; }

Property value

SyntaxToken

No documentation is available.

StartDocumentTypeToken

XmlDocumentTypeSyntax.cs
public SyntaxToken StartDocumentTypeToken { get; }

Property value

SyntaxToken

No documentation is available.

Gets everything the declaration holds, which begins with the name.

public string? Value { get; }

Property value

string?

Methods

NameDescription
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.cs
public override void Accept(XmlSyntaxVisitor visitor)
Parameters
visitor XmlSyntaxVisitor

No documentation is available.

Accept<TResult>(XmlSyntaxVisitor<TResult>)

XmlDocumentTypeSyntax.cs
public override TResult? Accept<TResult>(XmlSyntaxVisitor<TResult> visitor)
Type parameters
TResult
Parameters
visitor XmlSyntaxVisitor<TResult>
Returns

TResult?

No documentation is available.

Update(SyntaxToken, SyntaxToken, SyntaxToken, SyntaxToken)

XmlDocumentTypeSyntax.cs

Returns this node with the given parts, or itself when nothing changed.

public XmlDocumentTypeSyntax Update(SyntaxToken startDocumentTypeToken, SyntaxToken nameToken, SyntaxToken contentToken, SyntaxToken greaterThanToken)

Parameters

startDocumentTypeToken SyntaxToken
nameToken SyntaxToken
contentToken SyntaxToken
greaterThanToken SyntaxToken

Returns

XmlDocumentTypeSyntax

WithContentToken(SyntaxToken)

XmlDocumentTypeSyntax.cs
public XmlDocumentTypeSyntax WithContentToken(SyntaxToken contentToken)

Parameters

contentToken SyntaxToken

Returns

XmlDocumentTypeSyntax

No documentation is available.

WithGreaterThanToken(SyntaxToken)

XmlDocumentTypeSyntax.cs
public XmlDocumentTypeSyntax WithGreaterThanToken(SyntaxToken greaterThanToken)

Parameters

greaterThanToken SyntaxToken

Returns

XmlDocumentTypeSyntax

No documentation is available.

WithName(string)

XmlDocumentTypeSyntax.cs
public XmlDocumentTypeSyntax WithName(string name)

Parameters

name string

Returns

XmlDocumentTypeSyntax

Exceptions

ArgumentNullException
name is null.

WithNameToken(SyntaxToken)

XmlDocumentTypeSyntax.cs
public XmlDocumentTypeSyntax WithNameToken(SyntaxToken nameToken)

Parameters

nameToken SyntaxToken

Returns

XmlDocumentTypeSyntax

No documentation is available.

WithStartDocumentTypeToken(SyntaxToken)

XmlDocumentTypeSyntax.cs
public XmlDocumentTypeSyntax WithStartDocumentTypeToken(SyntaxToken startDocumentTypeToken)

Parameters

startDocumentTypeToken SyntaxToken

Returns

XmlDocumentTypeSyntax

No documentation is available.

WithValue(string?)

XmlDocumentTypeSyntax.cs

Returns this declaration with different content. The name is taken from the front of the value.

public XmlDocumentTypeSyntax WithValue(string? value)

Parameters

value string?

Returns

XmlDocumentTypeSyntax