| ParserParse Method |
Parses the supplied HOCON configuration string into a root element.
Namespace:
Akka.Configuration.Hocon
Assembly:
Akka (in Akka.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax public static HoconRoot Parse(
string text,
Func<string, HoconRoot> includeCallback
)
static member Parse :
text : string *
includeCallback : Func<string, HoconRoot> -> HoconRoot
Parameters
- text
- Type: SystemString
The string that contains a HOCON configuration string. - includeCallback
- Type: SystemFuncString, HoconRoot
Callback used to resolve includes
Return Value
Type:
HoconRootThe root element created from the supplied HOCON configuration string.
Exceptions Exception | Condition |
---|
FormatException | This exception is thrown if an unresolved substitution or an unknown token is encountered. |
Exception | This exception is thrown if the end of the file has been reached while trying to read a value. |
See Also