IVsWCFReferenceGroup::AddReference Method (IDiscoverySession^, String^)

 

Adds a Windows Communication Foundation (WCF) service reference to a reference group.

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

void AddReference(
	IDiscoverySession^ pDiscoverySession,
	String^ pszUrl
)

Parameters

pDiscoverySession
Type: Microsoft.VisualStudio.Shell.Interop::IDiscoverySession^

The IDiscoverySession to use. Can be Null.

pszUrl
Type: System::String^

A String that contains the URL for the service.

When the VSHPROPID_ServiceReferenceSupported property of the client project is false or the property is not supported, the AddReference method fails.

Return to top
Show: