IDiscoverySession2.DiscoverUrlAsyncWithMetadataExchange 方法
傳回探索結果 (IDiscoveryResult) 以非同步方式之 Windows 通訊資格服務介面。
命名空間: Microsoft.VisualStudio.WCFReference.Interop
組件: Microsoft.VisualStudio.WCFReference.Interop (在 Microsoft.VisualStudio.WCFReference.Interop.dll 中)
語法
'宣告
Sub DiscoverUrlAsyncWithMetadataExchange ( _
url As String, _
protocolPriority As DiscoverySessionProtocolPriority, _
resolveAllFiles As Integer, _
toolConfigurationPath As String, _
pDiscoverUrlCallBack As IDiscoverUrlCallBack, _
<OutAttribute> ByRef pCookieID As Integer _
)
void DiscoverUrlAsyncWithMetadataExchange(
string url,
DiscoverySessionProtocolPriority protocolPriority,
int resolveAllFiles,
string toolConfigurationPath,
IDiscoverUrlCallBack pDiscoverUrlCallBack,
out int pCookieID
)
void DiscoverUrlAsyncWithMetadataExchange(
String^ url,
DiscoverySessionProtocolPriority protocolPriority,
int resolveAllFiles,
String^ toolConfigurationPath,
IDiscoverUrlCallBack^ pDiscoverUrlCallBack,
[OutAttribute] int% pCookieID
)
abstract DiscoverUrlAsyncWithMetadataExchange :
url:string *
protocolPriority:DiscoverySessionProtocolPriority *
resolveAllFiles:int *
toolConfigurationPath:string *
pDiscoverUrlCallBack:IDiscoverUrlCallBack *
pCookieID:int byref -> unit
function DiscoverUrlAsyncWithMetadataExchange(
url : String,
protocolPriority : DiscoverySessionProtocolPriority,
resolveAllFiles : int,
toolConfigurationPath : String,
pDiscoverUrlCallBack : IDiscoverUrlCallBack,
pCookieID : int
)
參數
url
類型:String指定的 URL 之搜索工作階段。
protocolPriority
類型:Microsoft.VisualStudio.WCFReference.Interop.DiscoverySessionProtocolPriorityA DiscoverySessionProtocolPriority列舉型別指定慣用的通訊協定。
resolveAllFiles
類型:Int32略過檔案,無法解析; 0 否則 1。
toolConfigurationPath
類型:String指定組態檔的位置。
pDiscoverUrlCallBack
類型:IDiscoverUrlCallBack指標IDiscoverUrlCallBack介面。 這個介面會傳回S_OK完成搜索。
pCookieID
類型:Int32%指定用來識別探索結果的 cookie。
備註
若要取消作業,呼叫CancelDiscoverUrl方法的IDiscoverySession介面。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。