Share via


IVsWCFReferenceGroup.AsyncAddReference Method

Adds a Windows Communication Foundation (WCF) service reference to a reference group asynchronously.

Namespace:  Microsoft.VisualStudio.WCFReference.Interop
Assembly:  Microsoft.VisualStudio.WCFReference.Interop (in Microsoft.VisualStudio.WCFReference.Interop.dll)

Syntax

'Declaration
Sub AsyncAddReference ( _
    pDiscoverySession As IDiscoverySession, _
    pszUrl As String, _
    pCallback As IVsWCFCompletionCallback, _
    punknownCustomState As Object, _
    <OutAttribute> ByRef ppResult As IVsWCFAsyncResult _
)
void AsyncAddReference(
    IDiscoverySession pDiscoverySession,
    string pszUrl,
    IVsWCFCompletionCallback pCallback,
    Object punknownCustomState,
    out IVsWCFAsyncResult ppResult
)
void AsyncAddReference(
    [InAttribute] IDiscoverySession^ pDiscoverySession, 
    [InAttribute] String^ pszUrl, 
    [InAttribute] IVsWCFCompletionCallback^ pCallback, 
    [InAttribute] Object^ punknownCustomState, 
    [OutAttribute] IVsWCFAsyncResult^% ppResult
)
abstract AsyncAddReference : 
        pDiscoverySession:IDiscoverySession * 
        pszUrl:string * 
        pCallback:IVsWCFCompletionCallback * 
        punknownCustomState:Object * 
        ppResult:IVsWCFAsyncResult byref -> unit 
function AsyncAddReference(
    pDiscoverySession : IDiscoverySession, 
    pszUrl : String, 
    pCallback : IVsWCFCompletionCallback, 
    punknownCustomState : Object, 
    ppResult : IVsWCFAsyncResult
)

Parameters

Remarks

When the VSHPROPID_ServiceReferenceSupported property of the client project is false or the property is not supported, the method fails.

.NET Framework Security

See Also

Reference

IVsWCFReferenceGroup Interface

Microsoft.VisualStudio.WCFReference.Interop Namespace