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 Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'宣告
Function PreviewURL ( _
pAction As IVsWebPreviewAction, _
lpszURL As String _
) As Integer
'用途
Dim instance As IVsWebPreview
Dim pAction As IVsWebPreviewAction
Dim lpszURL As String
Dim returnValue As Integer
returnValue = instance.PreviewURL(pAction, _
lpszURL)
int PreviewURL(
IVsWebPreviewAction pAction,
string lpszURL
)
int PreviewURL(
[InAttribute] IVsWebPreviewAction^ pAction,
[InAttribute] String^ lpszURL
)
abstract PreviewURL :
pAction:IVsWebPreviewAction *
lpszURL:string -> int
function PreviewURL(
pAction : IVsWebPreviewAction,
lpszURL : String
) : int
Parameters
- pAction
Type: Microsoft.VisualStudio.Shell.Interop.IVsWebPreviewAction
[in] Pointer to an IVsWebPreviewAction interface providing callbacks for the preview process.
- lpszURL
Type: System.String
[in] Pointer to a string containing the URL to be previewed.
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::PreviewURL(
[in] IVsWebPreviewAction* pAction,
[in] LPCOLESTR lpszURL
);
.NET Framework Security
- 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.