Click or drag to resize

LineEndingModeFromString Method

Returns the LineEndingMode that corresponds to the supplied name.

Namespace:  NLog.Targets
Assembly:  NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntax
public static LineEndingMode FromString(
	string name
)

Parameters

name
Type: SystemString
The textual representation of the line ending mode, such as CRLF, LF, Default etc. Name is not case sensitive.

Return Value

Type: LineEndingMode
The LineEndingMode value, that corresponds to the name.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionThere is no line ending mode with the specified name.
See Also