IVsASMXMetadataStorageProvider::AddWebReference Method (String^, String^, IDiscoveryResult^)

 

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

Namespace:   Microsoft.VisualStudio.WCFReference.Interop
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.

Return Value

Type: System::String^

A string that contains the actual namespace for the reference.

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

Return to top
Show: