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.5.0+1873145cbc26e0312d9481234d69ce7dc68aac4e
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