[ComImport, DefaultMember("Name"), Guid("D30C1661-CDAF-11D0-8A3E-00C04FC9E26E"), InterfaceType(ComInterfaceType.InterfaceIsIDispatch), SuppressUnmanagedCodeSecurity]
public interface IWebBrowser2
{
[DispId(100)]
void GoBack();
[DispId(0x65)]
void GoForward();
[DispId(0x66)]
void GoHome();
[DispId(0x67)]
void GoSearch();
[DispId(0x68)]
void Navigate([MarshalAs(UnmanagedType.BStr)] string URL, [In] ref object Flags, [In] ref object TargetFrameName, [In] ref object PostData, [In] ref object Headers);
[DispId(-550)]
void Refresh();
[DispId(0x69)]
void Refresh2([In] ref object Level);
[DispId(0x6a)]
void Stop();
[DispId(300)]
void Quit();
[DispId(0x12d)]
void ClientToWindow([In, Out] ref int pcx, [In, Out] ref int pcy);
[DispId(0x12e)]
void PutProperty([MarshalAs(UnmanagedType.BStr)] string Property, object vtValue);
[DispId(0x12f)]
object GetProperty([MarshalAs(UnmanagedType.BStr)] string Property);
[DispId(500)]
void Navigate2([In] ref object URL, [In] ref object Flags, [In] ref object TargetFrameName, [In] ref object PostData, [In] ref object Headers);
[DispId(0x1f5)]
UnsafeNativeMethods.OLECMDF QueryStatusWB(UnsafeNativeMethods.OLECMDID cmdID);
[DispId(0x1f6)]
void ExecWB(UnsafeNativeMethods.OLECMDID cmdID, UnsafeNativeMethods.OLECMDEXECOPT cmdexecopt, [In] ref object pvaIn, [In, Out] ref object pvaOut);
[DispId(0x1f7)]
void ShowBrowserBar([In] ref object pvaClsid, [In] ref object pvarShow, [In] ref object pvarSize);
bool AddressBar { [return: MarshalAs(UnmanagedType.VariantBool)] [DispId(0x22b)] get; [DispId(0x22b)] set; }
object Application { [return: MarshalAs(UnmanagedType.IDispatch)] [DispId(200)] get; }
bool Busy { [return: MarshalAs(UnmanagedType.VariantBool)] [DispId(0xd4)] get; }
object Container { [return: MarshalAs(UnmanagedType.IDispatch)] [DispId(0xca)] get; }
object Document { [return: MarshalAs(UnmanagedType.IDispatch)] [DispId(0xcb)] get; }
string FullName { [return: MarshalAs(UnmanagedType.BStr)] [DispId(400)] get; }
bool FullScreen { [return: MarshalAs(UnmanagedType.VariantBool)] [DispId(0x197)] get; [DispId(0x197)] set; }
int Height { [DispId(0xd1)] get; [DispId(0xd1)] set; }
int HWND { [DispId(-515)] get; }
int Left { [DispId(0xce)] get; [DispId(0xce)] set; }
string LocationName { [return: MarshalAs(UnmanagedType.BStr)] [DispId(210)] get; }
string LocationURL { [return: MarshalAs(UnmanagedType.BStr)] [DispId(0xd3)] get; }
bool MenuBar { [return: MarshalAs(UnmanagedType.VariantBool)] [DispId(0x196)] get; [DispId(0x196)] set; }
string Name { [return: MarshalAs(UnmanagedType.BStr)] [DispId(0)] get; }
bool Offline { [return: MarshalAs(UnmanagedType.VariantBool)] [DispId(550)] get; [DispId(550)] set; }
object Parent { [return: MarshalAs(UnmanagedType.IDispatch)] [DispId(0xc9)] get; }
string Path { [return: MarshalAs(UnmanagedType.BStr)] [DispId(0x191)] get; }
NativeMethods.tagREADYSTATE ReadyState { [DispId(-525)] get; }
bool RegisterAsBrowser { [return: MarshalAs(UnmanagedType.VariantBool)] [DispId(0x228)] get; [DispId(0x228)] set; }
bool RegisterAsDropTarget { [return: MarshalAs(UnmanagedType.VariantBool)] [DispId(0x229)] get; [DispId(0x229)] set; }
bool Resizable { [return: MarshalAs(UnmanagedType.VariantBool)] [DispId(0x22c)] get; [DispId(0x22c)] set; }
bool Silent { [return: MarshalAs(UnmanagedType.VariantBool)] [DispId(0x227)] get; [DispId(0x227)] set; }
bool StatusBar { [return: MarshalAs(UnmanagedType.VariantBool)] [DispId(0x193)] get; [DispId(0x193)] set; }
string StatusText { [return: MarshalAs(UnmanagedType.BStr)] [DispId(0x194)] get; [DispId(0x194)] set; }
bool TheaterMode { [return: MarshalAs(UnmanagedType.VariantBool)] [DispId(0x22a)] get; [DispId(0x22a)] set; }
int ToolBar { [DispId(0x195)] get; [DispId(0x195)] set; }
int Top { [DispId(0xcf)] get; [DispId(0xcf)] set; }
bool TopLevelContainer { [return: MarshalAs(UnmanagedType.VariantBool)] [DispId(0xcc)] get; }
string Type { [return: MarshalAs(UnmanagedType.BStr)] [DispId(0xcd)] get; }
bool Visible { [return: MarshalAs(UnmanagedType.VariantBool)] [DispId(0x192)] get; [DispId(0x192)] set; }
int Width { [DispId(0xd0)] get; [DispId(0xd0)] set; }
}
<ComImport(), Guid("D30C1661-CDAF-11D0-8A3E-00C04FC9E26E"), InterfaceType(ComInterfaceType.InterfaceIsIDispatch), DefaultMember("Name"), SuppressUnmanagedCodeSecurity()> _
Public Interface IWebBrowser2
' Methods
<DispId(301)> _
Sub ClientToWindow(<[In](), Out()> ByRef pcx As Integer, <[In](), Out()> ByRef pcy As Integer)
<DispId(502)> _
Sub ExecWB(ByVal cmdID As OLECMDID, ByVal cmdexecopt As OLECMDEXECOPT, <[In]()> ByRef pvaIn As Object, <[In](), Out()> ByRef pvaOut As Object)
<DispId(303)> _
Function GetProperty(<MarshalAs(UnmanagedType.BStr)> ByVal [Property] As String) As Object
<DispId(100)> _
Sub GoBack()
<DispId(101)> _
Sub GoForward()
<DispId(102)> _
Sub GoHome()
<DispId(103)> _
Sub GoSearch()
<DispId(104)> _
Sub Navigate(<MarshalAs(UnmanagedType.BStr)> ByVal URL As String, <[In]()> ByRef Flags As Object, <[In]()> ByRef TargetFrameName As Object, <[In]()> ByRef PostData As Object, <[In]()> ByRef Headers As Object)
<DispId(500)> _
Sub Navigate2(<[In]()> ByRef URL As Object, <[In]()> ByRef Flags As Object, <[In]()> ByRef TargetFrameName As Object, <[In]()> ByRef PostData As Object, <[In]()> ByRef Headers As Object)
<DispId(302)> _
Sub PutProperty(<MarshalAs(UnmanagedType.BStr)> ByVal [Property] As String, ByVal vtValue As Object)
<DispId(501)> _
Function QueryStatusWB(ByVal cmdID As OLECMDID) As OLECMDF
<DispId(300)> _
Sub Quit()
<DispId(-550)> _
Sub Refresh()
<DispId(105)> _
Sub Refresh2(<[In]()> ByRef Level As Object)
<DispId(503)> _
Sub ShowBrowserBar(<[In]()> ByRef pvaClsid As Object, <[In]()> ByRef pvarShow As Object, <[In]()> ByRef pvarSize As Object)
<DispId(106)> _
Sub [Stop]()
' Properties
Property AddressBar() As <MarshalAs(UnmanagedType.VariantBool)> Boolean
ReadOnly Property Application() As <MarshalAs(UnmanagedType.IDispatch)> Object
ReadOnly Property Busy() As <MarshalAs(UnmanagedType.VariantBool)> Boolean
ReadOnly Property Container() As <MarshalAs(UnmanagedType.IDispatch)> Object
ReadOnly Property Document() As <MarshalAs(UnmanagedType.IDispatch)> Object
ReadOnly Property FullName() As <MarshalAs(UnmanagedType.BStr)> String
Property FullScreen() As <MarshalAs(UnmanagedType.VariantBool)> Boolean
Property Height() As Integer
ReadOnly Property HWND() As Integer
Property Left() As Integer
ReadOnly Property LocationName() As <MarshalAs(UnmanagedType.BStr)> String
ReadOnly Property LocationURL() As <MarshalAs(UnmanagedType.BStr)> String
Property MenuBar() As <MarshalAs(UnmanagedType.VariantBool)> Boolean
ReadOnly Property Name() As <MarshalAs(UnmanagedType.BStr)> String
Property Offline() As <MarshalAs(UnmanagedType.VariantBool)> Boolean
ReadOnly Property Parent() As <MarshalAs(UnmanagedType.IDispatch)> Object
ReadOnly Property Path() As <MarshalAs(UnmanagedType.BStr)> String
ReadOnly Property ReadyState() As tagREADYSTATE
Property RegisterAsBrowser() As <MarshalAs(UnmanagedType.VariantBool)> Boolean
Property RegisterAsDropTarget() As <MarshalAs(UnmanagedType.VariantBool)> Boolean
Property Resizable() As <MarshalAs(UnmanagedType.VariantBool)> Boolean
Property Silent() As <MarshalAs(UnmanagedType.VariantBool)> Boolean
Property StatusBar() As <MarshalAs(UnmanagedType.VariantBool)> Boolean
Property StatusText() As <MarshalAs(UnmanagedType.BStr)> String
Property TheaterMode() As <MarshalAs(UnmanagedType.VariantBool)> Boolean
Property ToolBar() As Integer
Property Top() As Integer
ReadOnly Property TopLevelContainer() As <MarshalAs(UnmanagedType.VariantBool)> Boolean
ReadOnly Property Type() As <MarshalAs(UnmanagedType.BStr)> String
Property Visible() As <MarshalAs(UnmanagedType.VariantBool)> Boolean
Property Width() As Integer
End Interface
tagREADYSTATE , OLECMDID, OLECMDEXECOPT, OLECMDF
Required referenece to System, System.Security, System.Runtime.InteropServices, System.Reflection Namespaces