Class ConsoleTaskbarProgress
Console taskbar progress class
Inheritance
object
ConsoleTaskbarProgress
Namespace
Syntax
public static class ConsoleTaskbarProgress
Methods
SetProgress(ConsoleTaskbarProgressEnum, long, long)
Sets the progress of the console taskbar (signed integers)
Remarks
Nothing happens when you try to run this function on non-Windows systems.
Declaration
public static void SetProgress(ConsoleTaskbarProgressEnum state, long progressValue = 0, long maximum = 100)
Parameters
| Name | Type | Description |
|---|---|---|
| state | ConsoleTaskbarProgressEnum | Taskbar progress state |
| progressValue | long | Progress value |
| maximum | long | Maximum progress value |
Exceptions
| Type | Condition |
|---|---|
| ArgumentOutOfRangeException |
SetProgressUnsigned(ConsoleTaskbarProgressEnum, ulong, ulong)
Sets the progress of the console taskbar (unsigned integers)
Remarks
Nothing happens when you try to run this function on non-Windows systems.
Declaration
public static void SetProgressUnsigned(ConsoleTaskbarProgressEnum state, ulong progressValue = 0, ulong maximum = 100)
Parameters
| Name | Type | Description |
|---|---|---|
| state | ConsoleTaskbarProgressEnum | Taskbar progress state |
| progressValue | ulong | Progress value |
| maximum | ulong | Maximum progress value |
Exceptions
| Type | Condition |
|---|---|
| ArgumentOutOfRangeException |