Cmdlet
New-ConsoleKeyValue
Creates an aligned key/value list.
Syntax
New-ConsoleKeyValue [[-Data] <Object>] [-Markup] [-Name <String>] [<CommonParameters>]#Parameter set:
All Parameter SetsDescription
Creates an aligned key/value list.
Keys come from a hashtable (use [ordered] to keep order) or from an object's properties. Keys are muted and aligned; values wrap. Values are shown literally unless -Markup is used. In a live dashboard, update pairs with Set-ConsoleValue.
Examples
EXAMPLE 1
New-ConsoleKeyValue -Name 'Name'Parameters
- -Data Object
- A hashtable or an object whose properties become the pairs.
- -Markup SwitchParameter
- Treat values as markup.
- -Name String
- The live name used by Set-ConsoleValue (default keyvalue).
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.