PowerShell Studio Feature Requests

Feature requests, product enhancement ideas, and other product-specific suggestions.

Function Builder / Editor - Add support for [ref]

PhilBenson, May. 11, 2019Under Review

Product:  PowerShell Studio 2019 (64 Bit)

Build:    v5.6.162

OS:       Windows 10 Enterprise 2016 LTSB (64 Bit)

Build:    v10.0.14393.0

 

Hi,

how about adding the ability to create a reference paramter (typed) in th function builder?

At the moment you can define the type, but not explicitly define that it is by refernce ( [ref] ). Perhaps I'm missing something but I had to add everything manually whilst defining a function whose paramter was to be passed by reference.

 

Cheers

Phil

ex.

 

param

(

[Parameter(Mandatory = $true,

   ValueFromPipeline = $false,

   ValueFromPipelineByPropertyName = $false,

   Position = 0,

   HelpMessage = 'The Hashtable object that will contain the contents of the parsed command line. This object is passed ByRef!')]

[System.Collections.Hashtable][ref]$inoutHash

)

 

Cheers

Phil


You must be logged in to make a comment on a feature request. Click here to log in now.