可以使用元数据交换协议,用于返回 windows communication foundation (WCF) 元数据提供一个接口。
命名空间: Microsoft.VisualStudio.WCFReference.Interop
程序集: Microsoft.VisualStudio.WCFReference.Interop(在 Microsoft.VisualStudio.WCFReference.Interop.dll 中)
语法
声明
<GuidAttribute("182B5EB4-9A58-47B7-A3FE-AC7ED8B891FF")> _
<InterfaceTypeAttribute()> _
Public Interface IDiscoverySession2
[GuidAttribute("182B5EB4-9A58-47B7-A3FE-AC7ED8B891FF")]
[InterfaceTypeAttribute()]
public interface IDiscoverySession2
[GuidAttribute(L"182B5EB4-9A58-47B7-A3FE-AC7ED8B891FF")]
[InterfaceTypeAttribute()]
public interface class IDiscoverySession2
[<GuidAttribute("182B5EB4-9A58-47B7-A3FE-AC7ED8B891FF")>]
[<InterfaceTypeAttribute()>]
type IDiscoverySession2 = interface end
public interface IDiscoverySession2
IDiscoverySession2 类型公开以下成员。
方法
名称 | 说明 | |
---|---|---|
![]() |
DiscoverUrlAsyncWithMetadataExchange | 返回异步 windows communication foundation 服务) 查看结果 (IDiscoveryResult(WCF)) 接口。 |
![]() |
DiscoverUrlWithMetadataExchange | 返回 windows communication foundation 服务) 查看结果 (IDiscoveryResult) (WCF) 接口。 |
页首
备注
IDiscoverySession2 接口扩展 IDiscoverySession 接口支持较新的元数据交换协议。 它包含是 DiscoverUrlAsync 等效和 IDiscoverySessionDiscoverUrl 方法的两个方法、 DiscoverUrlAsyncWithMetadataExchange 和 DiscoverUrlWithMetadataExchange 。