 | NetworkTargetGetHeaderToWrite Method |
Gets the header bytes to be written.
Namespace:
NLog.Targets
Assembly:
NLog.Targets.Network (in NLog.Targets.Network.dll) Version: 6.0.0+be83582280f7a841b0d3c6ae75b4f95aaf07e914
Syntaxprotected virtual byte[]? GetHeaderToWrite(
LogEventInfo logEvent,
string address,
byte[] payload
)
Protected Overridable Function GetHeaderToWrite (
logEvent As LogEventInfo,
address As String,
payload As Byte()
) As Byte()
Dim logEvent As LogEventInfo
Dim address As String
Dim payload As Byte()
Dim returnValue As Byte()
returnValue = Me.GetHeaderToWrite(logEvent,
address, payload)
abstract GetHeaderToWrite :
logEvent : LogEventInfo *
address : string *
payload : byte[] -> byte[]
override GetHeaderToWrite :
logEvent : LogEventInfo *
address : string *
payload : byte[] -> byte[]
Parameters
- logEvent
- Type: NLogLogEventInfo
Log event. - address
- Type: SystemString
network address. - payload
- Type: SystemByte
Payload buffer.
Return Value
Type:
ByteByte array.
See Also