ServiceConfiguration.AddServiceEndpoint Method (Type, Binding, String)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

public ServiceEndpoint AddServiceEndpoint(
	Type contractType,
	Binding binding,
	string 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.String

The address for the endpoint added.

Return Value

Type: System.ServiceModel.Description.ServiceEndpoint

The service endpoint added to the configuration service.

.NET Framework
Available since 4.5
Return to top
Show: