DiscoveryEndpoint 构造函数

定义

创建 DiscoveryEndpoint 类的新实例。Creates a new instance of the DiscoveryEndpoint class.

重载

DiscoveryEndpoint()

创建 DiscoveryEndpoint 类的新实例。Creates a new instance of the DiscoveryEndpoint class.

DiscoveryEndpoint(Binding, EndpointAddress)

使用指定的绑定和终结点地址创建 DiscoveryEndpoint 类的新实例。Creates a new instance of the DiscoveryEndpoint class with the specified binding and endpoint address.

DiscoveryEndpoint(DiscoveryVersion, ServiceDiscoveryMode)

使用指定的发现版本和模式初始化 DiscoveryEndpoint 类的新实例。Initializes a new instance of the DiscoveryEndpoint class with the specified discovery version and mode.

DiscoveryEndpoint(DiscoveryVersion, ServiceDiscoveryMode, Binding, EndpointAddress)

使用指定的发现版本、模式、绑定和终结点地址初始化 DiscoveryEndpoint 类的新实例。Initializes a new instance of the DiscoveryEndpoint class with the specified discovery version, mode, binding, and endpoint address.

DiscoveryEndpoint()

创建 DiscoveryEndpoint 类的新实例。Creates a new instance of the DiscoveryEndpoint class.

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

注解

默认情况下,DiscoveryVersion 设置为 WSDiscoveryApril2005,并且 DiscoveryMode 设置为 ManagedBy default, DiscoveryVersion is set to WSDiscoveryApril2005 and DiscoveryMode is set to Managed.

适用于

DiscoveryEndpoint(Binding, EndpointAddress)

使用指定的绑定和终结点地址创建 DiscoveryEndpoint 类的新实例。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)

参数

binding
Binding

绑定。The binding.

endpointAddress
EndpointAddress

终结点地址。The endpoint address.

注解

默认情况下,DiscoveryVersion 设置为 WSDiscoveryApril2005,并且 DiscoveryMode 设置为 ManagedBy default, DiscoveryVersion is set to WSDiscoveryApril2005 and DiscoveryMode is set to Managed.

适用于

DiscoveryEndpoint(DiscoveryVersion, ServiceDiscoveryMode)

使用指定的发现版本和模式初始化 DiscoveryEndpoint 类的新实例。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)

参数

discoveryVersion
DiscoveryVersion

一个枚举值,表示 WS-Discovery 协议的一个版本。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.

适用于

DiscoveryEndpoint(DiscoveryVersion, ServiceDiscoveryMode, Binding, EndpointAddress)

使用指定的发现版本、模式、绑定和终结点地址初始化 DiscoveryEndpoint 类的新实例。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)

参数

discoveryVersion
DiscoveryVersion

一个枚举值,表示 WS-Discovery 协议的一个版本。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.

适用于