Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
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
- pDiscoverySession
Type: Microsoft.VisualStudio.Shell.Interop.IDiscoverySession
The IDiscoverySession to use. Can be Null.
- pszUrl
Type: 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: 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.
Remarks
When the VSHPROPID_ServiceReferenceSupported property of the client project is false or the property is not supported, the method fails.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.