 | ColoredConsoleTargetDetectConsoleAvailable Property |
Gets or sets a value indicating whether to auto-check if the console is available.
- Disables console writing if Environment.UserInteractive = (Windows Service)
- Disables console writing if Console Standard Input is not available (Non-Console-App)
Namespace:
NLog.Targets
Assembly:
NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntaxpublic 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:
Boolean
RemarksDefault:
See Also