Share via


IVsASMXMetadataStorageProvider.AddWebReference Method

Definition

Adds the metadata to a project for reference to a Web service (.asmx) that uses ASP.NET.

public:
 System::String ^ AddWebReference(System::String ^ pszUrl, System::String ^ pszSuggestName, Microsoft::VisualStudio::Shell::Interop::IDiscoveryResult ^ pDiscoveryResult);
public:
 Platform::String ^ AddWebReference(Platform::String ^ pszUrl, Platform::String ^ pszSuggestName, Microsoft::VisualStudio::Shell::Interop::IDiscoveryResult ^ pDiscoveryResult);
std::wstring AddWebReference(std::wstring const & pszUrl, std::wstring const & pszSuggestName, Microsoft::VisualStudio::Shell::Interop::IDiscoveryResult const & pDiscoveryResult);
public string AddWebReference (string pszUrl, string pszSuggestName, Microsoft.VisualStudio.Shell.Interop.IDiscoveryResult pDiscoveryResult);
abstract member AddWebReference : string * string * Microsoft.VisualStudio.Shell.Interop.IDiscoveryResult -> string
Public Function AddWebReference (pszUrl As String, pszSuggestName As String, pDiscoveryResult As IDiscoveryResult) As String

Parameters

pszUrl
String

A string that contains the URL for the reference.

pszSuggestName
String

A string that contains the suggested namespace for the reference.

pDiscoveryResult
IDiscoveryResult

An IDiscoveryResult that contains the metadata for the reference.

Returns

A string that contains the actual namespace for the reference.

Remarks

To avoid potential namespace conflicts, call the IsValidNewASMXReferenceName method before you call this method.

Applies to