IDiscoverySession2.DiscoverUrlAsyncWithMetadataExchange Method

Definition

Returns the discovery result (IDiscoveryResult) interface for a Windows Communication Foundation (WCF) service asynchronously.

public:
 void DiscoverUrlAsyncWithMetadataExchange(System::String ^ url, Microsoft::VisualStudio::WCFReference::Interop::DiscoverySessionProtocolPriority protocolPriority, int resolveAllFiles, System::String ^ toolConfigurationPath, Microsoft::VisualStudio::Shell::Interop::IDiscoverUrlCallBack ^ pDiscoverUrlCallBack, [Runtime::InteropServices::Out] int % pCookieID);
void DiscoverUrlAsyncWithMetadataExchange(std::wstring const & url, Microsoft::VisualStudio::WCFReference::Interop::DiscoverySessionProtocolPriority protocolPriority, int resolveAllFiles, std::wstring const & toolConfigurationPath, Microsoft::VisualStudio::Shell::Interop::IDiscoverUrlCallBack const & pDiscoverUrlCallBack, [Runtime::InteropServices::Out] int & pCookieID);
public void DiscoverUrlAsyncWithMetadataExchange (string url, Microsoft.VisualStudio.WCFReference.Interop.DiscoverySessionProtocolPriority protocolPriority, int resolveAllFiles, string toolConfigurationPath, Microsoft.VisualStudio.Shell.Interop.IDiscoverUrlCallBack pDiscoverUrlCallBack, out int pCookieID);
abstract member DiscoverUrlAsyncWithMetadataExchange : string * Microsoft.VisualStudio.WCFReference.Interop.DiscoverySessionProtocolPriority * int * string * Microsoft.VisualStudio.Shell.Interop.IDiscoverUrlCallBack * int -> unit
Public Sub DiscoverUrlAsyncWithMetadataExchange (url As String, protocolPriority As DiscoverySessionProtocolPriority, resolveAllFiles As Integer, toolConfigurationPath As String, pDiscoverUrlCallBack As IDiscoverUrlCallBack, ByRef pCookieID As Integer)

Parameters

url
String

Specifies the URL for the discovery session.

protocolPriority
DiscoverySessionProtocolPriority

A DiscoverySessionProtocolPriority enumeration specifying the preferred protocol.

resolveAllFiles
Int32

0 to skip files that cannot be resolved; otherwise 1.

toolConfigurationPath
String

Specifies the location of the configuration file.

pDiscoverUrlCallBack
IDiscoverUrlCallBack

Pointer to the IDiscoverUrlCallBack interface. This interface returns S_OK when the discovery is completed.

pCookieID
Int32

Specifies a cookie that identifies the discovery result.

Remarks

To cancel the operation, call the CancelDiscoverUrl method of the IDiscoverySession interface.

Applies to