Click or drag to resize

Layout.FromString Method (String, ConfigurationItemFactory)

Implicitly converts the specified string to a SimpleLayout.

Namespace:  NLog.Layouts
Assembly:  NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax
public static Layout FromString(
	string layoutText,
	ConfigurationItemFactory configurationItemFactory
)

Parameters

layoutText
Type: System.String
The layout string.
configurationItemFactory
Type: NLog.Config.ConfigurationItemFactory
The NLog factories to use when resolving layout renderers.

Return Value

Type: Layout
Instance of SimpleLayout.
See Also