IniSectionSyntax Class
A section header such as [database].
public sealed class IniSectionSyntax : IniEntrySyntax- Inheritance
IniEntrySyntaxIniSectionSyntax
Properties
| Name | Description |
|---|---|
| CloseBracketToken | |
| Name | Gets the section name, without the whitespace around it. |
| NameToken | |
| OpenBracketToken | |
| Properties | Gets the properties under this header: the ones that follow it, up to the next header. |
CloseBracketToken
IniSectionSyntax.csNameToken
IniSectionSyntax.csOpenBracketToken
IniSectionSyntax.csProperties
IniSectionSyntax.csGets the properties under this header: the ones that follow it, up to the next header.
public IReadOnlyList<IniPropertySyntax> Properties { get; }Property value
IReadOnlyList<IniPropertySyntax>
Remarks
A header that is not part of a document has none.
Methods
| Name | Description |
|---|---|
| Accept(IniSyntaxVisitor) | |
| Accept<TResult>(IniSyntaxVisitor<TResult>) | |
| Update(SyntaxToken, SyntaxToken, SyntaxToken) | Returns this section with the given parts, or itself when nothing changed. |
| WithCloseBracketToken(SyntaxToken) | |
| WithName(string) | Returns this section with a new name. |
| WithNameToken(SyntaxToken) | |
| WithOpenBracketToken(SyntaxToken) |
Accept overloads
Accept(IniSyntaxVisitor)
IniSectionSyntax.cspublic override void Accept(IniSyntaxVisitor visitor)Parameters
visitorIniSyntaxVisitor
No documentation is available.
Accept<TResult>(IniSyntaxVisitor<TResult>)
IniSectionSyntax.cspublic override TResult? Accept<TResult>(IniSyntaxVisitor<TResult> visitor)No documentation is available.
Update(SyntaxToken, SyntaxToken, SyntaxToken)
IniSectionSyntax.csReturns this section with the given parts, or itself when nothing changed.
public IniSectionSyntax Update(SyntaxToken openBracketToken, SyntaxToken nameToken, SyntaxToken closeBracketToken)WithCloseBracketToken(SyntaxToken)
IniSectionSyntax.cspublic IniSectionSyntax WithCloseBracketToken(SyntaxToken closeBracketToken)No documentation is available.
WithName(string)
IniSectionSyntax.csReturns this section with a new name.
public IniSectionSyntax WithName(string name)Parameters
namestring
Returns
Exceptions
ArgumentNullExceptionnameisnull.ArgumentExceptionnamecannot be written as a section name.
Remarks
In a document, the name is checked the way the document reads it (see IniDocumentSyntax.Options), as SyntaxFactory.SectionName checks it. Otherwise it is checked as SyntaxFactory.SectionName checks it.
WithNameToken(SyntaxToken)
IniSectionSyntax.cspublic IniSectionSyntax WithNameToken(SyntaxToken nameToken)No documentation is available.
WithOpenBracketToken(SyntaxToken)
IniSectionSyntax.cspublic IniSectionSyntax WithOpenBracketToken(SyntaxToken openBracketToken)No documentation is available.