ImageryServiceClient Constructor

 

Initializes a new instance of the ImageryServiceClient Class.

Syntax

public ImageryServiceClient()
Public Sub New

Syntax

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

Syntax

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

Syntax

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

Syntax

public ImageryServiceClient(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 Imagery 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_IImageryService

Binary over HTTP

CustomBinding_IImageryService

Example

Create an ImageryServiceClient object that uses the binary over HTTP endpoint.

ImageryService.ImageryServiceClient ImageryService = new ImageryService.ImageryServiceClient("CustomBinding_IImageryService");
Dim ImageryServiceInstance As New ImageryService.ImageryServiceClient("BasicHttpBinding_IImageryService")

See Also

System.ServiceModel.ClientBase.ClientBase(TChannel) Constructor