| ColoredConsoleTargetDetectConsoleAvailable Property |
Gets or sets a value indicating whether to auto-check if the console is available.
- Disables console writing if Environment.UserInteractive = False (Windows Service)
- Disables console writing if Console Standard Input is not available (Non-Console-App)
Namespace:
NLog.Targets
Assembly:
NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax public bool DetectConsoleAvailable { get; set; }
Public Property DetectConsoleAvailable As Boolean
Get
Set
Dim instance As ColoredConsoleTarget
Dim value As Boolean
value = instance.DetectConsoleAvailable
instance.DetectConsoleAvailable = value
member DetectConsoleAvailable : bool with get, set
Property Value
Type:
BooleanSee Also