Condividi tramite


IVsAddWebReferenceDlg.AddWebReferenceDlg Method

Displays the Add Web Reference dialog box, allowing the user to pick a Web reference URL.

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

Syntax

'Declaration
Function AddWebReferenceDlg ( _
    <OutAttribute> ByRef pbstrWebReferenceUrl As String, _
    <OutAttribute> ByRef pfCancelled As Integer _
) As Integer
int AddWebReferenceDlg(
    out string pbstrWebReferenceUrl,
    out int pfCancelled
)
int AddWebReferenceDlg(
    [OutAttribute] String^% pbstrWebReferenceUrl, 
    [OutAttribute] int% pfCancelled
)
abstract AddWebReferenceDlg : 
        pbstrWebReferenceUrl:string byref * 
        pfCancelled:int byref -> int
function AddWebReferenceDlg(
    pbstrWebReferenceUrl : String, 
    pfCancelled : int
) : int

Parameters

  • pbstrWebReferenceUrl
    Type: String%

    [out] Pointer to a string containing the Web reference URL.

  • pfCancelled
    Type: Int32%

    [out] Pointer to a flag, true indicating cancelled.

Return Value

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

Remarks

COM Signature

From compsvcspkg.idl:

HRESULT IVsAddWebReferenceDlg::AddWebReferenceDlg(
   [out] BSTR* pbstrWebReferenceUrl,
   [out] BOOL* pfCancelled
);

.NET Framework Security

See Also

Reference

IVsAddWebReferenceDlg Interface

Microsoft.VisualStudio.Shell.Interop Namespace