IVsASMXMetadataStorageProvider::AddWebReference Method (String^, String^, IDiscoveryResult^)
Visual Studio 2015
Adds the metadata to a project for reference to a Web service (.asmx) that uses ASP.NET.
Assembly: Microsoft.VisualStudio.WCFReference.Interop (in Microsoft.VisualStudio.WCFReference.Interop.dll)
String^ AddWebReference( String^ pszUrl, String^ pszSuggestName, IDiscoveryResult^ pDiscoveryResult )
Parameters
- pszUrl
-
Type:
System::String^
A string that contains the URL for the reference.
- pszSuggestName
-
Type:
System::String^
A string that contains the suggested namespace for the reference.
- pDiscoveryResult
-
Type:
Microsoft.VisualStudio.Shell.Interop::IDiscoveryResult^
An IDiscoveryResult that contains the metadata for the reference.
To avoid potential namespace conflicts, call the IsValidNewASMXReferenceName method before you call this method.
Show: