IDiscoverySession2.DiscoverUrlAsyncWithMetadataExchange(String, DiscoverySessionProtocolPriority, Int32, String, IDiscoverUrlCallBack, Int32) Метод

Определение

Возвращает интерфейс результата обнаружения (IDiscoveryResult) для службы Windows Communication Foundation (WCF) в асинхронном режиме.

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)

Параметры

url
String

Указывает URL для сеанса обнаружения.

protocolPriority
DiscoverySessionProtocolPriority

Перечисление DiscoverySessionProtocolPriority, задающее предпочтительный протокол.

resolveAllFiles
Int32

0 для передачи файлов, которые нельзя разрешить; в противном случае – значение 1.

toolConfigurationPath
String

Указывает расположение файла конфигурации.

pDiscoverUrlCallBack
IDiscoverUrlCallBack

Указатель на интерфейс IDiscoverUrlCallBack. Этот интерфейс возвращает S_OK, когда обнаружение завершено.

pCookieID
Int32

Указывает файл cookie, который определяет результат обнаружения.

Комментарии

Чтобы отменить операцию, вызовите CancelDiscoverUrl метод IDiscoverySession интерфейса.

Применяется к