Class HoconArray
This class represents an array element in a HOCON (Human-Optimized Config Object Notation) configuration string.
akka {
cluster {
seed-nodes = [
"akka.tcp://[email protected]:2551",
"akka.tcp://[email protected]:2552"]
}
}
Implements
Inherited Members
System.Collections.Generic.List<Akka.Configuration.Hocon.HoconValue>.System.Collections.IList.get_Item(System.Int32)
System.Collections.Generic.List<Akka.Configuration.Hocon.HoconValue>.System.Collections.IList.set_Item(System.Int32, System.Object)
Namespace: Akka.Configuration.Hocon
Assembly: Akka.dll
Syntax
public class HoconArray : List<HoconValue>, IList<HoconValue>, ICollection<HoconValue>, IReadOnlyList<HoconValue>, IReadOnlyCollection<HoconValue>, IEnumerable<HoconValue>, IList, ICollection, IEnumerable, IHoconElement
Methods
| Improve this Doc View SourceGetArray()
Retrieves a list of elements associated with this element.
Declaration
public IList<HoconValue> GetArray()
Returns
Type | Description |
---|---|
IList<HoconValue> | A list of elements associated with this element. |
GetString()
N/A
Declaration
public string GetString()
Returns
Type | Description |
---|---|
String | N/A |
Exceptions
Type | Condition |
---|---|
NotImplementedException | This exception is thrown automatically since this element is an array and not a string. |
IsArray()
Determines whether this element is an array.
Declaration
public bool IsArray()
Returns
Type | Description |
---|---|
Boolean |
|
IsString()
Determines whether this element is a string.
Declaration
public bool IsString()
Returns
Type | Description |
---|---|
Boolean |
|
ToString()
Returns a HOCON string representation of this element.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | A HOCON string representation of this element. |