帮忙把 vb.net 转一下 c#
bool         DisplayError         =         true;         //         Display         Standard         IE         Script         Error         Dialog                                            
                                                       bool         ContinueRunningScripts         =         true;         //         Continue         to         run         Scripts                                            
                                                       HTMLDocumentClass         Doc         =         (HTMLDocumentClass)         pvaIn;                                            
                                                       IHTMLEventObj2         ev         =         (IHTMLEventObj2)         Doc.parentWindow.@event;                                            
                                                       int         errorLine         =         (int)         ev.getAttribute( "errorLine ",         0);                                            
                                                       string         errorCharacter         =         ev.getAttribute( "errorCharacter ",                
       0).ToString();                                            
                                                       int         errorCode         =         (int)         ev.getAttribute( "errorCode ",         0);                                            
                                                       string         errorMessage         =         (string)         ev.getAttribute( "errorMessage ",         0);                                            
                                                       string         errorUrl         =         (string)         ev.getAttribute( "errorUrl ",         0);