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: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
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