 | LayoutFromString Method (String, ConfigurationItemFactory) |
Parses the specified string as LayoutRenderer-expression into a
SimpleLayout.
Namespace:
NLog.Layouts
Assembly:
NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntaxpublic static Layout FromString(
string layoutText,
ConfigurationItemFactory configurationItemFactory
)
Public Shared Function FromString (
layoutText As String,
configurationItemFactory As ConfigurationItemFactory
) As Layout
Dim layoutText As String
Dim configurationItemFactory As ConfigurationItemFactory
Dim returnValue As Layout
returnValue = Layout.FromString(layoutText,
configurationItemFactory)
static member FromString :
layoutText : string *
configurationItemFactory : ConfigurationItemFactory -> Layout
Parameters
- layoutText
- Type: SystemString
The layout string. - configurationItemFactory
- Type: NLog.ConfigConfigurationItemFactory
The NLog factories to use when resolving layout renderers.
Return Value
Type:
LayoutInstance of
SimpleLayout.
See Also