Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ServiceConfiguration.AddServiceEndpoint Method (Type, Binding, Uri)

.NET Framework 4.6 and 4.5

Adds a service endpoint to the configuration service with a specified contract, binding, and URI that contains the endpoint address.

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

public ServiceEndpoint AddServiceEndpoint(
	Type contractType,
	Binding binding,
	Uri address
)

Parameters

contractType
Type: System.Type

The type of contract for the endpoint added.

binding
Type: System.ServiceModel.Channels.Binding

The binding for the endpoint added.

address
Type: System.Uri

The Uri that contains the address for the endpoint added.

Return Value

Type: System.ServiceModel.Description.ServiceEndpoint
The service endpoint added to the configuration service.

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft