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
'Déclaration
Function AddWebReferenceDlg ( _
<OutAttribute> ByRef pbstrWebReferenceUrl As String, _
<OutAttribute> ByRef pfCancelled As Integer _
) As Integer
'Utilisation
Dim instance As IVsAddWebReferenceDlg
Dim pbstrWebReferenceUrl As String
Dim pfCancelled As Integer
Dim returnValue As Integer
returnValue = instance.AddWebReferenceDlg(pbstrWebReferenceUrl, _
pfCancelled)
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: System.String%
[out] Pointer to a string containing the Web reference URL.
- pfCancelled
Type: System.Int32%
[out] Pointer to a flag, true indicating cancelled.
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 compsvcspkg.idl:
HRESULT IVsAddWebReferenceDlg::AddWebReferenceDlg(
[out] BSTR* pbstrWebReferenceUrl,
[out] BOOL* pfCancelled
);
.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.