IVsWCFReferenceGroup.AddReference(IDiscoverySession, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds a Windows Communication Foundation (WCF) service reference to a reference group.
public:
void AddReference(Microsoft::VisualStudio::Shell::Interop::IDiscoverySession ^ pDiscoverySession, System::String ^ pszUrl);
public:
void AddReference(Microsoft::VisualStudio::Shell::Interop::IDiscoverySession ^ pDiscoverySession, Platform::String ^ pszUrl);
void AddReference(Microsoft::VisualStudio::Shell::Interop::IDiscoverySession const & pDiscoverySession, std::wstring const & pszUrl);
public void AddReference (Microsoft.VisualStudio.Shell.Interop.IDiscoverySession pDiscoverySession, string pszUrl);
abstract member AddReference : Microsoft.VisualStudio.Shell.Interop.IDiscoverySession * string -> unit
Public Sub AddReference (pDiscoverySession As IDiscoverySession, pszUrl As String)
Parameters
- pDiscoverySession
- IDiscoverySession
The IDiscoverySession to use. Can be Null.
Remarks
When the VSHPROPID_ServiceReferenceSupported property of the client project is false or the property is not supported, the AddReference method fails.