Quantcast
Channel: Windows PowerShell Forum
Viewing all articles
Browse latest Browse all 2562

PSCmdlet.ParameterSetName

$
0
0
I'm trying to implement [CmdletBinding(DefaultParameterSetName="something")] when I'm at ProcessRecord function, I copy a switch structure as

switch (PSCmdlet.ParameterSetName)

{

}

I do have a parameter declaration with ParrameterSetName. It seems not to recognize the command in the switch. Can someone tell me where I could find the proper syntax.

michael john ocasio




Viewing all articles
Browse latest Browse all 2562

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>