/ Published in: Windows PowerShell
                    
                                        Sample of declare a simple powershell class with a constructor
Thanks to http://www.peterhenell.se/
                Thanks to http://www.peterhenell.se/
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
 #Sample of declare a simple powershell class with a constructor #Thanks to http://www.peterhenell.se/ function ExtendedWebClient ($url,$timeout) { $webclient = "" | Select url,timeout $webclient.url = $url $webclient.timeout = $timeout $webclient; } cls $extclient = ExtendedWebClient "www.myurl.com" 100 $extclient
Comments
                    Subscribe to comments
                
                