Command
Get-BenchmarkInput
Gets a caller-supplied benchmark input variable.
Syntax
Get-BenchmarkInput
[[-Default] <Object>]
[-Name] <String>
[-Required]
[<CommonParameters>]#Parameter set:
TextGet-BenchmarkInput
[[-Default] <Object>]
-Int
[-Name] <String>
[-Required]
[<CommonParameters>]#Parameter set:
IntGet-BenchmarkInput
-Bool
[[-Default] <Object>]
[-Name] <String>
[-Required]
[<CommonParameters>]#Parameter set:
BoolExamples
Example 1
Get-BenchmarkInput -Name 'Name'Example 2
Get-BenchmarkInput -BoolExample 3
Get-BenchmarkInput -IntParameters
- -Default Object
- Default value used when the variable was not supplied.
- -Name String
- Benchmark variable name.
- -Required SwitchParameter
- Fail when the variable was not supplied or is empty.
- -Int SwitchParameter
- Return the benchmark variable as one or more integers.
- -Bool SwitchParameter
- Return the benchmark variable as a boolean.
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.