IDiscoverySession2.DiscoverUrlAsyncWithMetadataExchange 方法

返回异步 windows communication foundation 服务) 查看结果 (IDiscoveryResult(WCF)) 接口。

命名空间:  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。

  • resolveAllFiles
    类型:Int32

    跳过不能解析的文件的 0;否则 1。

  • toolConfigurationPath
    类型:String

    指定配置文件的位置。

  • pDiscoverUrlCallBack
    类型:IDiscoverUrlCallBack

    IDiscoverUrlCallBack 接口的指针。 ,这种查看完成时,此接口返回 S_OK

  • pCookieID
    类型:Int32%

    指定标识查看结果的 cookie。

备注

若要取消操作,请调用 IDiscoverySession 接口的 CancelDiscoverUrl 方法。

.NET Framework 安全性

请参阅

参考

IDiscoverySession2 接口

Microsoft.VisualStudio.WCFReference.Interop 命名空间