. What is the use of the ValueFromPipelineByPropertyName=$true in the below advanced-function? Function Test-PipedValueByPropertyName { Param ( [Parameter(ValueFromPipelineByPropertyName=$true)] $processname, [Parameter(

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter8: Advanced Method Concepts
Section: Chapter Questions
Problem 7RQ
icon
Related questions
Question

Book reference: Windows PowerShell Step by Step 3rd Edition - Ed Wilson
Subj: PWS0 - PowerShell

Chapter 7

8. What is the use of the ValueFromPipelineByPropertyName=$true in the below advanced-function?

Function Test-PipedValueByPropertyName

{

Param

(

[Parameter(ValueFromPipelineByPropertyName=$true)] $processname,

[Parameter(ValueFromPipelineByPropertyName=$true)] $id

)

Process {Write-Host $processname $id}

}

 

9. What is the Param switch to enable an array of parameters?

Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,