Appearance
ServiceNow.Core
SNow.Core.Extensions.ConsoleColorExtensions
ConsoleColorExtensions.Write(ConsoleColor, string) Method
Writes the specified string value to the standard output stream.
csharp
public static void Write(this System.ConsoleColor foregroundColor, string value);
Parameters
foregroundColor
System.ConsoleColor
Foreground color.
value
System.String
The value to write.
Example
ConsoleColor.Green.Write("The task executed successfully");