IVsWebPreview.PreviewURLEx Method

Provides the information for the preview. Extension of PreviewURL. Use ActivatePreview to display the preview.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Declaration
Function PreviewURLEx ( _
    pAction As IVsWebPreviewAction, _
    lpszURL As String, _
    opt As UInteger, _
    cx As Integer, _
    cy As Integer _
) As Integer
'Usage
Dim instance As IVsWebPreview 
Dim pAction As IVsWebPreviewAction 
Dim lpszURL As String 
Dim opt As UInteger 
Dim cx As Integer 
Dim cy As Integer 
Dim returnValue As Integer 

returnValue = instance.PreviewURLEx(pAction, _
    lpszURL, opt, cx, cy)
int PreviewURLEx(
    IVsWebPreviewAction pAction,
    string lpszURL,
    uint opt,
    int cx,
    int cy
)
int PreviewURLEx(
    [InAttribute] IVsWebPreviewAction^ pAction, 
    [InAttribute] String^ lpszURL, 
    [InAttribute] unsigned int opt, 
    [InAttribute] int cx, 
    [InAttribute] int cy
)
function PreviewURLEx(
    pAction : IVsWebPreviewAction, 
    lpszURL : String, 
    opt : uint, 
    cx : int, 
    cy : int
) : int

Parameters

  • lpszURL
    Type: System.String

    [in] Pointer to a string containing the URL to be previewed.

  • cx
    Type: System.Int32

    [in] Integer. Horizontal position of upper left corner of preview. Can be zero (0), the default.

  • cy
    Type: System.Int32

    [in] Integer. Vertical position of upper left corner of preview. Can be zero (0), the default.

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 IVsWebPreview::PreviewURLEx(
   [in] IVsWebPreviewAction* pAction, 
   [in] LPCOLESTR lpszURL, 
   [in] VSWBPREVIEWOPTIONS opt, 
   [in] int cx
);

.NET Framework Security

See Also

Reference

IVsWebPreview Interface

IVsWebPreview Members

Microsoft.VisualStudio.Shell.Interop Namespace