How to my own cmdlet (using C#) with two input parameters mandatory but mutually exclusive?

21 views Asked by At

I'm developing PowerShell Cmdlets in C#. I would like to define mandatory parameters, but that are mutually exclusive.

Example:

Parameter A
Parameter B

When invoking the command, I must set only parameter A or only parameter B, but I cannot set both and I cannot set none.

0

There are 0 answers