 | SimpleLayoutEscape Method |
Escapes the passed text so that it can
be used literally in all places where
layout is normally expected without being
treated as layout.
Namespace:
NLog.Layouts
Assembly:
NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntaxpublic static string Escape(
string text
)
Public Shared Function Escape (
text As String
) As String
Dim text As String
Dim returnValue As String
returnValue = SimpleLayout.Escape(text)
static member Escape :
text : string -> string
Parameters
- text
- Type: SystemString
The text to be escaped.
Return Value
Type:
StringThe escaped text.
Remarks
Escaping is done by replacing all occurrences of
'${' with '${literal:text=${}'
See Also