DiscoveryClient Constructors

Definition

Creates a new instance of the DiscoveryClient class.

Overloads

DiscoveryClient()

Creates a new instance of the DiscoveryClient class.

DiscoveryClient(DiscoveryEndpoint)

Creates a new instance of the DiscoveryClient class with the specified discovery endpoint.

DiscoveryClient(String)

Creates a new instance of the DiscoveryClient class with the specified endpoint configuration.

DiscoveryClient()

Creates a new instance of the DiscoveryClient class.

C#
public DiscoveryClient();

Applies to

.NET Framework 4.8.1 和其他版本
产品 版本
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

DiscoveryClient(DiscoveryEndpoint)

Creates a new instance of the DiscoveryClient class with the specified discovery endpoint.

C#
public DiscoveryClient(System.ServiceModel.Discovery.DiscoveryEndpoint discoveryEndpoint);

Parameters

discoveryEndpoint
DiscoveryEndpoint

The discovery endpoint to use when sending discovery messages.

Applies to

.NET Framework 4.8.1 和其他版本
产品 版本
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

DiscoveryClient(String)

Creates a new instance of the DiscoveryClient class with the specified endpoint configuration.

C#
public DiscoveryClient(string endpointConfigurationName);

Parameters

endpointConfigurationName
String

The endpoint configuration name to use.

Applies to

.NET Framework 4.8.1 和其他版本
产品 版本
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1