Condividi tramite


IDiscoverySession2 Interface

Provides an interface for returning Windows Communication Foundation (WCF) metadata by using the metadata exchange protocol.

Namespace:  Microsoft.VisualStudio.WCFReference.Interop
Assembly:  Microsoft.VisualStudio.WCFReference.Interop (in Microsoft.VisualStudio.WCFReference.Interop.dll)

Syntax

'Dichiarazione
<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

The IDiscoverySession2 type exposes the following members.

Methods

  Name Description
Public method DiscoverUrlAsyncWithMetadataExchange Returns the discovery result (IDiscoveryResult) interface for a Windows Communication Foundation (WCF) service asynchronously.
Public method DiscoverUrlWithMetadataExchange Returns the discovery result (IDiscoveryResult) interface for a Windows Communication Foundation (WCF) service.

Top

Remarks

The IDiscoverySession2 interface extends the IDiscoverySession interface to support the newer metadata exchange protocol. It contains two methods, DiscoverUrlAsyncWithMetadataExchange and DiscoverUrlWithMetadataExchange which are the equivalent of the DiscoverUrlAsync and DiscoverUrl methods of IDiscoverySession.

See Also

Reference

Microsoft.VisualStudio.WCFReference.Interop Namespace