| LayoutFromString Method (String, ConfigurationItemFactory) |
Namespace:
NLog.Layouts
Assembly:
NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax public 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