This documentation is archived and is not being maintained.

IVsWebPreview.PreviewURL Method

Provides the information for the preview. Use ActivatePreview to display the preview.

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

int PreviewURL (
	[InAttribute] IVsWebPreviewAction pAction,
	[InAttribute] string lpszURL
int PreviewURL (
	/** @attribute InAttribute() */ IVsWebPreviewAction pAction, 
	/** @attribute InAttribute() */ String lpszURL
function PreviewURL (
	pAction : IVsWebPreviewAction, 
	lpszURL : String
) : int



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


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

Return Value

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

COM Signature

From vsbrowse.idl:

HRESULT IVsWebPreview::PreviewURL(
   [in] IVsWebPreviewAction* pAction, 
   [in] LPCOLESTR lpszURL