• Home
  • Projects
Koz.TV
  • Home
  • Projects
    Loading posts...
  • Setup WebClient timeout in PowerShell

    If you want to setup timeout value for downloadString method of WebClient Class in PowerShell, you need to extend WebClient Class, because property Timeout isn't public. So, in the next example I inherited new ExtendedWebClient Class from WebClient Class. And I add public field Timeout to the new class. Then I overrode GetWebRequest Method to use…
    November 10, 2016
  • Telegram
  • Facebook
  • LinkedIn
  • Instagram

© 2014...2022
[email protected]