DiscoveryClient Constructors
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new instance of the DiscoveryClient class.
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. |
Creates a new instance of the DiscoveryClient class.
public:
DiscoveryClient();
public DiscoveryClient();
Public Sub New ()
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 |
Creates a new instance of the DiscoveryClient class with the specified discovery endpoint.
public:
DiscoveryClient(System::ServiceModel::Discovery::DiscoveryEndpoint ^ discoveryEndpoint);
public DiscoveryClient(System.ServiceModel.Discovery.DiscoveryEndpoint discoveryEndpoint);
new System.ServiceModel.Discovery.DiscoveryClient : System.ServiceModel.Discovery.DiscoveryEndpoint -> System.ServiceModel.Discovery.DiscoveryClient
Public Sub New (discoveryEndpoint As 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 |
Creates a new instance of the DiscoveryClient class with the specified endpoint configuration.
public:
DiscoveryClient(System::String ^ endpointConfigurationName);
public DiscoveryClient(string endpointConfigurationName);
new System.ServiceModel.Discovery.DiscoveryClient : string -> System.ServiceModel.Discovery.DiscoveryClient
Public Sub New (endpointConfigurationName As String)
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 |