다음을 통해 공유


IDiscoverySession2 Interface

Definition

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

public interface class IDiscoverySession2
public interface class IDiscoverySession2
__interface IDiscoverySession2
[System.Runtime.InteropServices.Guid("182B5EB4-9A58-47B7-A3FE-AC7ED8B891FF")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IDiscoverySession2
[<System.Runtime.InteropServices.Guid("182B5EB4-9A58-47B7-A3FE-AC7ED8B891FF")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IDiscoverySession2 = interface
Public Interface IDiscoverySession2
Attributes

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.

Methods

DiscoverUrlAsyncWithMetadataExchange(String, DiscoverySessionProtocolPriority, Int32, String, IDiscoverUrlCallBack, Int32)

Returns the discovery result (IDiscoveryResult) interface for a Windows Communication Foundation (WCF) service asynchronously.

DiscoverUrlWithMetadataExchange(String, DiscoverySessionProtocolPriority, Int32, String, IDiscoveryResult)

Returns the discovery result (IDiscoveryResult) interface for a Windows Communication Foundation (WCF) service.

Applies to