Udostępnij za pośrednictwem


IVsWebPreview.PreviewURL(IVsWebPreviewAction, String) Method

Definition

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

public:
 int PreviewURL(Microsoft::VisualStudio::Shell::Interop::IVsWebPreviewAction ^ pAction, System::String ^ lpszURL);
public:
 int PreviewURL(Microsoft::VisualStudio::Shell::Interop::IVsWebPreviewAction ^ pAction, Platform::String ^ lpszURL);
int PreviewURL(Microsoft::VisualStudio::Shell::Interop::IVsWebPreviewAction const & pAction, std::wstring const & lpszURL);
public int PreviewURL (Microsoft.VisualStudio.Shell.Interop.IVsWebPreviewAction pAction, string lpszURL);
abstract member PreviewURL : Microsoft.VisualStudio.Shell.Interop.IVsWebPreviewAction * string -> int
Public Function PreviewURL (pAction As IVsWebPreviewAction, lpszURL As String) As Integer

Parameters

pAction
IVsWebPreviewAction

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

lpszURL
String

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

Returns

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

Remarks

COM Signature

From vsbrowse.idl:

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

Applies to