IniValue Class
Definition
Represents a string-valued leaf in a mutable INI document tree.
public sealed class IniValue : IniNode
- Inheritance
-
IniValue
- Inherited Members
- Extension Methods
Constructors
IniValue(string)
Initializes a new instance of the IniValue class with the supplied value.
public IniValue(string value)
Parameters
valuestringThe string value.
Exceptions
- ArgumentNullException
Thrown when
valueis null.
Properties
Value
Gets or sets the string value.
public string Value { get; set; }
Property Value
Exceptions
- ArgumentNullException
Thrown when the assigned value is null.
ValueKind
Gets the value kind of this node.
public override IniValueKind ValueKind { get; }
Property Value
- IniValueKind
The node's IniValueKind.
Methods
DeepClone()
Creates a deep copy of this node, including its comment trivia.
public override IniNode DeepClone()
Returns
- IniNode
The cloned node.
WriteTo(ref Utf8IniWriter)
Writes this node's INI representation to the supplied writer.
public override void WriteTo(ref Utf8IniWriter writer)
Parameters
writerUtf8IniWriterThe writer that receives the INI bytes.
Applies to
| Product | Versions |
|---|---|
| .NET | 8, 10 |