C# .NET - error CS1525: Unexpected symbol UpdateSessionClass

Asked By Toby Harris on 07-Apr-21 03:22 PM
I have tried to compile code from this page http://www.nullskull.com/a/1592/install-windows-updates-using-c--wuapi.aspx all I get is error CS1525: Unexpected symbol `UpdateSessionClass' I have no idea what I am doing wrong?

Not sure what "Write the below import statement" means should it go at the start of the code?

I am currently well out of my depth and any help would be amazing,

Thank you