IVsWCFReferenceGroup.AsyncAddReference 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 asynchronously.
public:
void AsyncAddReference(Microsoft::VisualStudio::Shell::Interop::IDiscoverySession ^ pDiscoverySession, System::String ^ pszUrl, Microsoft::VisualStudio::WCFReference::Interop::IVsWCFCompletionCallback ^ pCallback, System::Object ^ punknownCustomState, [Runtime::InteropServices::Out] Microsoft::VisualStudio::WCFReference::Interop::IVsWCFAsyncResult ^ % ppResult);
public:
void AsyncAddReference(Microsoft::VisualStudio::Shell::Interop::IDiscoverySession ^ pDiscoverySession, Platform::String ^ pszUrl, Microsoft::VisualStudio::WCFReference::Interop::IVsWCFCompletionCallback ^ pCallback, Platform::Object ^ punknownCustomState, [Runtime::InteropServices::Out] Microsoft::VisualStudio::WCFReference::Interop::IVsWCFAsyncResult ^ & ppResult);
void AsyncAddReference(Microsoft::VisualStudio::Shell::Interop::IDiscoverySession const & pDiscoverySession, std::wstring const & pszUrl, Microsoft::VisualStudio::WCFReference::Interop::IVsWCFCompletionCallback const & pCallback, winrt::Windows::Foundation::IInspectable const & punknownCustomState, [Runtime::InteropServices::Out] Microsoft::VisualStudio::WCFReference::Interop::IVsWCFAsyncResult const & & ppResult);
public void AsyncAddReference (Microsoft.VisualStudio.Shell.Interop.IDiscoverySession pDiscoverySession, string pszUrl, Microsoft.VisualStudio.WCFReference.Interop.IVsWCFCompletionCallback pCallback, object punknownCustomState, out Microsoft.VisualStudio.WCFReference.Interop.IVsWCFAsyncResult ppResult);
abstract member AsyncAddReference : Microsoft.VisualStudio.Shell.Interop.IDiscoverySession * string * Microsoft.VisualStudio.WCFReference.Interop.IVsWCFCompletionCallback * obj * IVsWCFAsyncResult -> unit
Public Sub AsyncAddReference (pDiscoverySession As IDiscoverySession, pszUrl As String, pCallback As IVsWCFCompletionCallback, punknownCustomState As Object, ByRef ppResult As IVsWCFAsyncResult)
Parameters
- pDiscoverySession
- IDiscoverySession
The IDiscoverySession to use. Can be Null.
- pCallback
- IVsWCFCompletionCallback
A IVsWCFCompletionCallback interface to use for notification.
- punknownCustomState
- Object
A custom state object that can be accessed from the IVsWCFAsyncResult interface. Can be Null.
- ppResult
- IVsWCFAsyncResult
A IVsWCFAsyncResult interface that contains the results.
Remarks
When the VSHPROPID_ServiceReferenceSupported property of the client project is false or the property is not supported, the method fails.