Share via


IVsWCFReferenceGroup.AsyncAddReference Method

Definition

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.

pszUrl
String

A String that contains the URL for the service.

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.

Applies to