- param(
- [string[]]$Para
- )
-
- $Para.gettype()
- $Para.length
-
- foreach ( $a in $Para ) {
- Write-Host "Received arguments Para: $a"
- }
- foreach ( $a in $args ) {
- Write-Host "Received arguments args: $a"
- }
复制代码
- param(
- [string[]]$Para ,
- [string[]]$args
- )
-
- $Para.gettype()
- $Para.length
-
- foreach ( $a in $Para ) {
- Write-Host "Received arguments Para: $a"
- }
- foreach ( $a in $args ) {
- Write-Host "Received arguments args: $a"
- }
复制代码
|