Click or drag to resize

LayoutFromString Method (String)

Parses the specified string as LayoutRenderer-expression into a SimpleLayout.

Namespace:  NLog.Layouts
Assembly:  NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntax
public static Layout FromString(
	string layoutText
)

Parameters

layoutText
Type: SystemString
The layout string.

Return Value

Type: Layout
Instance of SimpleLayout.
See Also