 | AspNetRequestIpLayoutRendererCheckForwardedForHeaderOffset Property |
Gets or sets the array index of the X-Forwarded-For header to use, if the desired client IP is not at
the zeroth index. Defaults to zero. If the index is too large the last array element is returned instead.
If a negative index is used, this is used as the position from the end of the array.
Minus one will indicate the last element in the array. If the negative index is too large the first index
of the array is returned instead.
Namespace:
NLog.Web.LayoutRenderers
Assemblies:
NLog.Web.AspNetCore (in NLog.Web.AspNetCore.dll) Version: 5.5.0+9fe9421708749962bac8393d7cec5df976518ccb
NLog.Web (in NLog.Web.dll) Version: 5.5.0+9fe9421708749962bac8393d7cec5df976518ccb
Syntaxpublic int CheckForwardedForHeaderOffset { get; set; }
Public Property CheckForwardedForHeaderOffset As Integer
Get
Set
Dim instance As AspNetRequestIpLayoutRenderer
Dim value As Integer
value = instance.CheckForwardedForHeaderOffset
instance.CheckForwardedForHeaderOffset = value
member CheckForwardedForHeaderOffset : int with get, set
Property Value
Type:
Int32
See Also