Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

different datatype for same parameter

$
0
0

I have Powershell functions which are working as cmdlets.

My functions may get a string or an array of strings as value for the same parameter. is there any way to use some type of overloading and not by specifying the datatype as object(maybe)?

As there are multiple syntax for same cmdlet in help text for cmdlets, can the same parameter have different datatype in different implementation?

thanks in advance,

Vijay




Viewing all articles
Browse latest Browse all 21975

Trending Articles



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