IVsWebBrowsingService.GetFirstWebBrowser Method
Get the first available Web browser.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'宣言
Function GetFirstWebBrowser ( _
ByRef rguidPersistenceSlot As Guid, _
<OutAttribute> ByRef ppFrame As IVsWindowFrame, _
<OutAttribute> ByRef ppBrowser As IVsWebBrowser _
) As Integer
'使用
Dim instance As IVsWebBrowsingService
Dim rguidPersistenceSlot As Guid
Dim ppFrame As IVsWindowFrame
Dim ppBrowser As IVsWebBrowser
Dim returnValue As Integer
returnValue = instance.GetFirstWebBrowser(rguidPersistenceSlot, _
ppFrame, ppBrowser)
int GetFirstWebBrowser(
ref Guid rguidPersistenceSlot,
out IVsWindowFrame ppFrame,
out IVsWebBrowser ppBrowser
)
int GetFirstWebBrowser(
[InAttribute] Guid% rguidPersistenceSlot,
[OutAttribute] IVsWindowFrame^% ppFrame,
[OutAttribute] IVsWebBrowser^% ppBrowser
)
function GetFirstWebBrowser(
rguidPersistenceSlot : Guid,
ppFrame : IVsWindowFrame,
ppBrowser : IVsWebBrowser
) : int
Parameters
rguidPersistenceSlot
Type: System.Guid%[in] Pointer to the browser window GUID. A window must be registered in order to be saved and restored when Visual Studio starts up. Use GUID_NULL to use the default.
ppFrame
Type: Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame%[out] Pointer to the window frame (IVsWindowFrame) containing the browser.
ppBrowser
Type: Microsoft.VisualStudio.Shell.Interop.IVsWebBrowser%[out] Pointer to the IVsWebBrowser interface of the browser. May be a null reference (Nothing in Visual Basic).
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::GetFirstWebBrowser(
[in] REFGUID rguidPersistenceSlot,
[out] IVsWindowFrame** ppFrame,
[out] IVsWebBrowser** ppBrowser
);
Permissions
- 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.