Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Create an instance of a Web browser within the Visual Studio user interface.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
Function CreateWebBrowser ( _
dwCreateFlags As UInteger, _
ByRef rguidOwner As Guid, _
lpszBaseCaption As String, _
lpszStartURL As String, _
pUser As IVsWebBrowserUser, _
<OutAttribute> ByRef ppBrowser As IVsWebBrowser, _
<OutAttribute> ByRef ppFrame As IVsWindowFrame _
) As Integer
int CreateWebBrowser(
uint dwCreateFlags,
ref Guid rguidOwner,
string lpszBaseCaption,
string lpszStartURL,
IVsWebBrowserUser pUser,
out IVsWebBrowser ppBrowser,
out IVsWindowFrame ppFrame
)
int CreateWebBrowser(
[InAttribute] unsigned int dwCreateFlags,
[InAttribute] Guid% rguidOwner,
[InAttribute] String^ lpszBaseCaption,
[InAttribute] String^ lpszStartURL,
[InAttribute] IVsWebBrowserUser^ pUser,
[OutAttribute] IVsWebBrowser^% ppBrowser,
[OutAttribute] IVsWindowFrame^% ppFrame
)
abstract CreateWebBrowser :
dwCreateFlags:uint32 *
rguidOwner:Guid byref *
lpszBaseCaption:string *
lpszStartURL:string *
pUser:IVsWebBrowserUser *
ppBrowser:IVsWebBrowser byref *
ppFrame:IVsWindowFrame byref -> int
function CreateWebBrowser(
dwCreateFlags : uint,
rguidOwner : Guid,
lpszBaseCaption : String,
lpszStartURL : String,
pUser : IVsWebBrowserUser,
ppBrowser : IVsWebBrowser,
ppFrame : IVsWindowFrame
) : int
Parameters
dwCreateFlags
Type: System.UInt32[in] Bit flags specifying browser options. Created using values from the __VSCREATEWEBBROWSER enumeration.
rguidOwner
Type: System.Guid%[in] The GUID of the owner of the window frame in which the browser appears.
lpszBaseCaption
Type: System.String[in] Pointer to a string containing the base (first part) of the caption for the browser window. Default is WebBrowser.
lpszStartURL
Type: System.String[in] Pointer to a string containing the URL of the page to display.
pUser
Type: Microsoft.VisualStudio.Shell.Interop.IVsWebBrowserUser[in] Pointer to the IVsWebBrowserUser interface to use in controlling the browser.
ppBrowser
Type: Microsoft.VisualStudio.Shell.Interop.IVsWebBrowser%[out] Pointer to the IVsWebBrowser interface of the browser.
ppFrame
Type: Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame%[out] Pointer to the window frame (IVsWindowFrame) containing the browser.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From vsbrowse.idl:
HRESULT IVsWebBrowsingService::CreateWebBrowser(
[in] VSCREATEWEBBROWSER dwCreateFlags,
[in] REFGUID rguidOwner,
[in] LPCOLESTR lpszBaseCaption,
[in] LPCOLESTR lpszStartURL,
[in] IVsWebBrowserUser* pUser,
[out] IVsWebBrowser** ppBrowser,
[out] IVsWindowFrame** ppFrame
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.