Command
Add-BenchmarkOperation
Adds an operation handler to the current benchmark engine.
Syntax
Add-BenchmarkOperation
[-Name] <String>
[-ScriptBlock] <ScriptBlock>
[<CommonParameters>]#Parameter set:
All Parameter SetsExamples
Example 1
Add-BenchmarkOperation -Name 'Name'Parameters
- -Name String
- Operation name.
- -ScriptBlock ScriptBlock
- Operation body.
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.