ConsoleKeyInfo.Modifiers Property

Gets a bitwise combination of System.ConsoleModifiers values that specifies one or more modifier keys pressed simultaneously with the console key.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

member Modifiers : ConsoleModifiers with get

Property Value

Type: System.ConsoleModifiers
A bitwise combination of the enumeration values. There is no default value.

The following example demonstrates using a Modifiers property in a read operation.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft