SearchServiceClient Constructor

 

Initializes a new instance of the SearchServiceClient Class.

Syntax

public SearchServiceClient()
Public Sub New

Syntax

public SearchServiceClient(string endpointConfigurationName)
Public Sub New(ByVal endpointConfigurationName As String)

Syntax

public SearchServiceClient(string endpointConfigurationName, string remoteAddress)
Public Sub New(ByVal endpointConfigurationName As String, ByVal remoteAddress As String)

Syntax

public SearchServiceClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress)
Public Sub New(ByVal endpointConfigurationName As String, ByVal remoteAddress As System.ServiceModel.EndpointAddress)

Syntax

public SearchServiceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress)
Public Sub New(ByVal binding As System.ServiceModel.Channels.Binding, ByVal remoteAddress As System.ServiceModel.EndpointAddress)

Parameters

endpointConfigurationName

The endpoint for a service that allows clients to find and communicate with the service.

binding

The binding with which to make calls to the service.

remoteAddress

The address of the service endpoint.

Remarks

The Search service provides endpoints for Basic HTTP and Binary over HTTP configurations. When you create a proxy for your application, references to both endpoints are added to your application. Therefore, you must specify the endpoint you want to use. To specify the endpoint, use the following endpoint configuration names.

Endpoint Configuration Type

Endpoint Configuration Name

Basic HTTP

BasicHttpBinding_ISearchService

Binary over HTTP

CustomBinding_ISearchService

Example

Create a SearchServiceClient object that uses the binary over HTTP endpoint.

SearchService.SearchServiceClient SearchService = new SearchService.SearchServiceClient("CustomBinding_ISearchService");
Dim SearchServiceInstance As New SearchService.SearchServiceClient("BasicHttpBinding_ISearchService")

See Also

System.ServiceModel.ClientBase.ClientBase(TChannel) Constructor