แก้ไข

แชร์ผ่าน


DiscoveryEndpoint Constructors

Definition

Creates a new instance of the DiscoveryEndpoint class.

Overloads

DiscoveryEndpoint()

Creates a new instance of the DiscoveryEndpoint class.

DiscoveryEndpoint(Binding, EndpointAddress)

Creates a new instance of the DiscoveryEndpoint class with the specified binding and endpoint address.

DiscoveryEndpoint(DiscoveryVersion, ServiceDiscoveryMode)

Initializes a new instance of the DiscoveryEndpoint class with the specified discovery version and mode.

DiscoveryEndpoint(DiscoveryVersion, ServiceDiscoveryMode, Binding, EndpointAddress)

Initializes a new instance of the DiscoveryEndpoint class with the specified discovery version, mode, binding, and endpoint address.

DiscoveryEndpoint()

Creates a new instance of the DiscoveryEndpoint class.

public:
 DiscoveryEndpoint();
public DiscoveryEndpoint ();
Public Sub New ()

Remarks

By default, DiscoveryVersion is set to WSDiscoveryApril2005 and DiscoveryMode is set to Managed.

Applies to

DiscoveryEndpoint(Binding, EndpointAddress)

Creates a new instance of the DiscoveryEndpoint class with the specified binding and endpoint address.

public:
 DiscoveryEndpoint(System::ServiceModel::Channels::Binding ^ binding, System::ServiceModel::EndpointAddress ^ endpointAddress);
public DiscoveryEndpoint (System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress endpointAddress);
new System.ServiceModel.Discovery.DiscoveryEndpoint : System.ServiceModel.Channels.Binding * System.ServiceModel.EndpointAddress -> System.ServiceModel.Discovery.DiscoveryEndpoint
Public Sub New (binding As Binding, endpointAddress As EndpointAddress)

Parameters

binding
Binding

The binding.

endpointAddress
EndpointAddress

The endpoint address.

Remarks

By default, DiscoveryVersion is set to WSDiscoveryApril2005 and DiscoveryMode is set to Managed.

Applies to

DiscoveryEndpoint(DiscoveryVersion, ServiceDiscoveryMode)

Initializes a new instance of the DiscoveryEndpoint class with the specified discovery version and mode.

public:
 DiscoveryEndpoint(System::ServiceModel::Discovery::DiscoveryVersion ^ discoveryVersion, System::ServiceModel::Discovery::ServiceDiscoveryMode discoveryMode);
public DiscoveryEndpoint (System.ServiceModel.Discovery.DiscoveryVersion discoveryVersion, System.ServiceModel.Discovery.ServiceDiscoveryMode discoveryMode);
new System.ServiceModel.Discovery.DiscoveryEndpoint : System.ServiceModel.Discovery.DiscoveryVersion * System.ServiceModel.Discovery.ServiceDiscoveryMode -> System.ServiceModel.Discovery.DiscoveryEndpoint
Public Sub New (discoveryVersion As DiscoveryVersion, discoveryMode As ServiceDiscoveryMode)

Parameters

discoveryVersion
DiscoveryVersion

An enumerated value representing one of the versions of the WS-Discovery protocols.

discoveryMode
ServiceDiscoveryMode

An enumerated value representing one of the modes used to send discovery messages.

Applies to

DiscoveryEndpoint(DiscoveryVersion, ServiceDiscoveryMode, Binding, EndpointAddress)

Initializes a new instance of the DiscoveryEndpoint class with the specified discovery version, mode, binding, and endpoint address.

public:
 DiscoveryEndpoint(System::ServiceModel::Discovery::DiscoveryVersion ^ discoveryVersion, System::ServiceModel::Discovery::ServiceDiscoveryMode discoveryMode, System::ServiceModel::Channels::Binding ^ binding, System::ServiceModel::EndpointAddress ^ endpointAddress);
public DiscoveryEndpoint (System.ServiceModel.Discovery.DiscoveryVersion discoveryVersion, System.ServiceModel.Discovery.ServiceDiscoveryMode discoveryMode, System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress endpointAddress);
new System.ServiceModel.Discovery.DiscoveryEndpoint : System.ServiceModel.Discovery.DiscoveryVersion * System.ServiceModel.Discovery.ServiceDiscoveryMode * System.ServiceModel.Channels.Binding * System.ServiceModel.EndpointAddress -> System.ServiceModel.Discovery.DiscoveryEndpoint
Public Sub New (discoveryVersion As DiscoveryVersion, discoveryMode As ServiceDiscoveryMode, binding As Binding, endpointAddress As EndpointAddress)

Parameters

discoveryVersion
DiscoveryVersion

An enumerated value representing one of the versions of the WS-Discovery protocols.

discoveryMode
ServiceDiscoveryMode

An enumerated value representing one of the modes used to send discovery messages.

binding
Binding

The binding elements that specify the protocols, transports, and message encoders used for communication between clients and services.

endpointAddress
EndpointAddress

The unique address of the discovery endpoint.

Applies to