public virtual void ExecWB(SHDocVw.OLECMDID cmdID, SHDocVw.OLECMDEXECOPT cmdexecopt, ref object pvaIn, ref object pvaOut)
 {
     if ((this.ocx == null))
     {
         throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("ExecWB", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
     }
     this.ocx.ExecWB(cmdID, cmdexecopt, ref pvaIn, ref pvaOut);
 }
 public virtual SHDocVw.OLECMDF QueryStatusWB(SHDocVw.OLECMDID cmdID)
 {
     if ((this.ocx == null))
     {
         throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("QueryStatusWB", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
     }
     return this.ocx.QueryStatusWB(cmdID);
 }
 public virtual void ExecWB(SHDocVw.OLECMDID cmdID, SHDocVw.OLECMDEXECOPT cmdexecopt)
 {
     if ((this.ocx == null))
     {
         throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("ExecWB", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
     }
     object[] paramArray = new object[] {
             cmdID,
             cmdexecopt,
             System.Reflection.Missing.Value,
             System.Reflection.Missing.Value};
     System.Type typeVar = typeof(SHDocVw.IWebBrowser2);
     System.Reflection.MethodInfo methodToInvoke = typeVar.GetMethod("ExecWB");
     methodToInvoke.Invoke(this.ocx, paramArray);
 }