IVsWCFReferenceGroup::AsyncAddReference Method (IDiscoverySession^, String^, IVsWCFCompletionCallback^, Object^, IVsWCFAsyncResult^)
Visual Studio 2015
Adds a Windows Communication Foundation (WCF) service reference to a reference group asynchronously.
Assembly: Microsoft.VisualStudio.WCFReference.Interop (in Microsoft.VisualStudio.WCFReference.Interop.dll)
void AsyncAddReference(
IDiscoverySession^ pDiscoverySession,
String^ pszUrl,
IVsWCFCompletionCallback^ pCallback,
Object^ punknownCustomState,
[OutAttribute] IVsWCFAsyncResult^% ppResult
)
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.
- pCallback
-
Type:
Microsoft.VisualStudio.WCFReference.Interop::IVsWCFCompletionCallback^
A IVsWCFCompletionCallback interface to use for notification.
- punknownCustomState
-
Type:
System::Object^
A custom state object that can be accessed from the IVsWCFAsyncResult interface. Can be Null.
- ppResult
-
Type:
Microsoft.VisualStudio.WCFReference.Interop::IVsWCFAsyncResult^
A IVsWCFAsyncResult interface that contains the results.
When the VSHPROPID_ServiceReferenceSupported property of the client project is false or the property is not supported, the method fails.
Show: