[This is preliminary documentation and is subject to change.]

Flush any pending log messages (in case of asynchronous targets).

Namespace:  NLog.Targets
Assembly:  NLog (in NLog.dll) Version: 2.0.1.0

Syntax

C#
public void Flush(
	AsyncContinuation asyncContinuation
)
Visual Basic (Declaration)
Public Sub Flush ( _
	asyncContinuation As AsyncContinuation _
)
Visual Basic (Usage)
Dim instance As Target
Dim asyncContinuation As AsyncContinuation

instance.Flush(asyncContinuation)

Parameters

asyncContinuation
Type: NLog.Common..::.AsyncContinuation
The asynchronous continuation.

See Also