UdpDiscoveryEndpoint 构造函数

定义

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

重载

UdpDiscoveryEndpoint()

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

UdpDiscoveryEndpoint(DiscoveryVersion)

使用指定的 UdpDiscoveryEndpoint 创建 DiscoveryVersion 类的新实例。Creates a new instance of the UdpDiscoveryEndpoint class with the specified DiscoveryVersion.

UdpDiscoveryEndpoint(String)

使用指定的多播地址创建 UdpDiscoveryEndpoint 类的新实例。Creates a new instance of the UdpDiscoveryEndpoint class with the specified multicast address.

UdpDiscoveryEndpoint(Uri)

使用指定的多播地址创建 UdpDiscoveryEndpoint 类的新实例。Creates a new instance of the UdpDiscoveryEndpoint class with the specified multicast address.

UdpDiscoveryEndpoint(DiscoveryVersion, String)

使用指定的 UdpDiscoveryEndpoint 和多播地址创建 DiscoveryVersion 类的新实例。Creates a new instance of the UdpDiscoveryEndpoint class with the specified DiscoveryVersion and multicast address.

UdpDiscoveryEndpoint(DiscoveryVersion, Uri)

使用指定的 UdpDiscoveryEndpoint 和多播地址创建 DiscoveryVersion 类的新实例。Creates a new instance of the UdpDiscoveryEndpoint class with the specified DiscoveryVersion and multicast address.

UdpDiscoveryEndpoint()

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

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

适用于

UdpDiscoveryEndpoint(DiscoveryVersion)

使用指定的 UdpDiscoveryEndpoint 创建 DiscoveryVersion 类的新实例。Creates a new instance of the UdpDiscoveryEndpoint class with the specified DiscoveryVersion.

public:
 UdpDiscoveryEndpoint(System::ServiceModel::Discovery::DiscoveryVersion ^ discoveryVersion);
public UdpDiscoveryEndpoint (System.ServiceModel.Discovery.DiscoveryVersion discoveryVersion);
new System.ServiceModel.Discovery.UdpDiscoveryEndpoint : System.ServiceModel.Discovery.DiscoveryVersion -> System.ServiceModel.Discovery.UdpDiscoveryEndpoint
Public Sub New (discoveryVersion As DiscoveryVersion)

参数

discoveryVersion
DiscoveryVersion

要使用的 DiscoveryVersionThe DiscoveryVersion to use.

注解

当前支持的 WS-Discovery 协议的两个版本:WS-Discovery 2005 年 4 月版本和 WS-Discovery V1.1,它们分别对应于枚举值 WSDiscoveryApril2005WSDiscovery11Two versions of the WS-Discovery protocol are currently supported: WS-Discovery April 2005 and WS-Discovery V1.1, which correspond to the WSDiscoveryApril2005 and WSDiscovery11 enumeration values.

适用于

UdpDiscoveryEndpoint(String)

使用指定的多播地址创建 UdpDiscoveryEndpoint 类的新实例。Creates a new instance of the UdpDiscoveryEndpoint class with the specified multicast address.

public:
 UdpDiscoveryEndpoint(System::String ^ multicastAddress);
public UdpDiscoveryEndpoint (string multicastAddress);
new System.ServiceModel.Discovery.UdpDiscoveryEndpoint : string -> System.ServiceModel.Discovery.UdpDiscoveryEndpoint
Public Sub New (multicastAddress As String)

参数

multicastAddress
String

多播地址。The multicast address.

适用于

UdpDiscoveryEndpoint(Uri)

使用指定的多播地址创建 UdpDiscoveryEndpoint 类的新实例。Creates a new instance of the UdpDiscoveryEndpoint class with the specified multicast address.

public:
 UdpDiscoveryEndpoint(Uri ^ multicastAddress);
public UdpDiscoveryEndpoint (Uri multicastAddress);
new System.ServiceModel.Discovery.UdpDiscoveryEndpoint : Uri -> System.ServiceModel.Discovery.UdpDiscoveryEndpoint
Public Sub New (multicastAddress As Uri)

参数

multicastAddress
Uri

多播地址。The multicast address.

适用于

UdpDiscoveryEndpoint(DiscoveryVersion, String)

使用指定的 UdpDiscoveryEndpoint 和多播地址创建 DiscoveryVersion 类的新实例。Creates a new instance of the UdpDiscoveryEndpoint class with the specified DiscoveryVersion and multicast address.

public:
 UdpDiscoveryEndpoint(System::ServiceModel::Discovery::DiscoveryVersion ^ discoveryVersion, System::String ^ multicastAddress);
public UdpDiscoveryEndpoint (System.ServiceModel.Discovery.DiscoveryVersion discoveryVersion, string multicastAddress);
new System.ServiceModel.Discovery.UdpDiscoveryEndpoint : System.ServiceModel.Discovery.DiscoveryVersion * string -> System.ServiceModel.Discovery.UdpDiscoveryEndpoint
Public Sub New (discoveryVersion As DiscoveryVersion, multicastAddress As String)

参数

discoveryVersion
DiscoveryVersion

要使用的 DiscoveryVersionThe DiscoveryVersion to use.

multicastAddress
String

针对 UDP 发现终结点的多播地址。The multicast address for the UDP discovery endpoint.

注解

当前支持的 WS-Discovery 协议的两个版本:WS-Discovery 2005 年 4 月版本和 WS-Discovery V1.1,它们分别对应于枚举值 WSDiscoveryApril2005WSDiscovery11Two versions of the WS-Discovery protocol are currently supported: WS-Discovery April 2005 and WS-Discovery V1.1, which correspond to the WSDiscoveryApril2005 and WSDiscovery11 enumeration values.

适用于

UdpDiscoveryEndpoint(DiscoveryVersion, Uri)

使用指定的 UdpDiscoveryEndpoint 和多播地址创建 DiscoveryVersion 类的新实例。Creates a new instance of the UdpDiscoveryEndpoint class with the specified DiscoveryVersion and multicast address.

public:
 UdpDiscoveryEndpoint(System::ServiceModel::Discovery::DiscoveryVersion ^ discoveryVersion, Uri ^ multicastAddress);
public UdpDiscoveryEndpoint (System.ServiceModel.Discovery.DiscoveryVersion discoveryVersion, Uri multicastAddress);
new System.ServiceModel.Discovery.UdpDiscoveryEndpoint : System.ServiceModel.Discovery.DiscoveryVersion * Uri -> System.ServiceModel.Discovery.UdpDiscoveryEndpoint
Public Sub New (discoveryVersion As DiscoveryVersion, multicastAddress As Uri)

参数

discoveryVersion
DiscoveryVersion

要使用的 DiscoveryVersionThe DiscoveryVersion to use.

multicastAddress
Uri

具有多播地址的 UriA Uri with the multicast address.

注解

当前支持的 WS-Discovery 协议的两个版本:WS-Discovery 2005 年 4 月版本和 WS-Discovery V1.1,它们分别对应于枚举值 WSDiscoveryApril2005WSDiscovery11Two versions of the WS-Discovery protocol are currently supported: WS-Discovery April 2005 and WS-Discovery V1.1, which correspond to the WSDiscoveryApril2005 and WSDiscovery11 enumeration values.

适用于