Editar

Partilhar via


UdpDiscoveryEndpointElement.DiscoveryMode Property

Definition

Gets or sets the discovery mode that is used by the discovery endpoint.

public:
 property System::ServiceModel::Discovery::ServiceDiscoveryMode DiscoveryMode { System::ServiceModel::Discovery::ServiceDiscoveryMode get(); void set(System::ServiceModel::Discovery::ServiceDiscoveryMode value); };
[System.Configuration.ConfigurationProperty("discoveryMode", DefaultValue=System.ServiceModel.Discovery.ServiceDiscoveryMode.Adhoc)]
public System.ServiceModel.Discovery.ServiceDiscoveryMode DiscoveryMode { get; set; }
[<System.Configuration.ConfigurationProperty("discoveryMode", DefaultValue=System.ServiceModel.Discovery.ServiceDiscoveryMode.Adhoc)>]
member this.DiscoveryMode : System.ServiceModel.Discovery.ServiceDiscoveryMode with get, set
Public Property DiscoveryMode As ServiceDiscoveryMode

Property Value

The discovery mode.

Attributes

Remarks

Discovery can be performed in two modes, ad-hoc and managed. In ad-hoc discovery, discovery messages are sent out in a multicast manner to all available services. In managed discovery, messages are sent in a unicast manner to a discovery proxy. For more information about the discovery modes, see WCF Discovery Overview.

Applies to