IVsWebPreview::PreviewURLEx Method (IVsWebPreviewAction^, String^, UInt32, Int32, Int32)

 

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)

int PreviewURLEx(
	IVsWebPreviewAction^ pAction,
	String^ lpszURL,
	unsigned int opt,
	int cx,
	int cy
)

Parameters

pAction
Type: Microsoft.VisualStudio.Shell.Interop::IVsWebPreviewAction^

[in] [in] Pointer to an IVsWebPreviewAction interface providing callbacks for the preview process. May be null.

lpszURL
Type: System::String^

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

opt
Type: System::UInt32

[in] Integer. Options for displaying the preview window. A value from the __VSWBPREVIEWOPTIONS enumeration.

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.

From vsbrowse.idl:

HRESULT IVsWebPreview::PreviewURLEx(
   [in] IVsWebPreviewAction* pAction, 
   [in] LPCOLESTR lpszURL, 
   [in] VSWBPREVIEWOPTIONS opt, 
   [in] int cx
);
Return to top
Show: