PowerShell 5 中的 PSBoundParameters Class

PSBoundParameters in PowerShell 5 Class

是否可以在 PowerShell 5 class 中展开或使用 $PSBoundParameters?例如,我想这样做:

class foo {
  [void]baz($i) {
  }

  [void]bar($i) {
  $this.baz(@PSBoundParameters)
  }
}

确认了,好像不可以。