IVsWCFReferenceGroup::AddReference Method (IDiscoverySession^, String^)
Visual Studio 2015
Adds a Windows Communication Foundation (WCF) service reference to a reference group.
Assembly: Microsoft.VisualStudio.WCFReference.Interop (in Microsoft.VisualStudio.WCFReference.Interop.dll)
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.
Show: