'How to use jenkin build parameter in build step written in .net as script?

I have created a freestyle project with build parameters in Jenkin. But I am not sure how to access those parameters in the build step written using ".net as script". enter image description here

Any input around this will be very helpful.



Solution 1:[1]

Thanks to jenkin help. Build parameters are accessible using "GetSessionEnv("Param")" function. Below is the example. enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 khushal wadake