ServiceEndpoint Constructor (ContractDescription, Binding, EndpointAddress)

Initializes a new instance of the ServiceEndpoint class with a specified contract, binding, and address.

Namespace:  System.ServiceModel.Description
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public ServiceEndpoint(
	ContractDescription contract,
	Binding binding,
	EndpointAddress address
)

Parameters

contract
Type: System.ServiceModel.Description.ContractDescription
The ContractDescription for the service endpoint.
binding
Type: System.ServiceModel.Channels.Binding
The Binding that specifies how the service endpoint communicates with the world.
address
Type: System.ServiceModel.EndpointAddress
The EndpointAddress for the service endpoint.

Use this constructor to specify a service endpoint imperatively in code.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show: