API Reference
Command
Get-BenchmarkInput
Gets a caller-supplied benchmark input variable.
Remarks
Gets a caller-supplied benchmark input variable.
Examples
EXAMPLE 1
Get-BenchmarkInput -Name 'Name'
EXAMPLE 2
Get-BenchmarkInput -Bool
EXAMPLE 3
Get-BenchmarkInput -Int
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.
Syntax
Get-BenchmarkInput [-Default <Object>] -Name <String> [-Required] [<CommonParameters>]#Parameter set:
TextParameters
- 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.
Outputs
System.String, System.Int32, System.Boolean
Get-BenchmarkInput [-Default <Object>] -Int -Name <String> [-Required] [<CommonParameters>]#Parameter set:
IntParameters
- Default Object
- Default value used when the variable was not supplied.
- Int SwitchParameter
- Return the benchmark variable as one or more integers.
- Name String
- Benchmark variable name.
- Required SwitchParameter
- Fail when the variable was not supplied or is empty.
Outputs
System.String, System.Int32, System.Boolean
Get-BenchmarkInput -Bool [-Default <Object>] -Name <String> [-Required] [<CommonParameters>]#Parameter set:
BoolParameters
- Bool SwitchParameter
- Return the benchmark variable as a boolean.
- 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.
Outputs
System.String, System.Int32, System.Boolean