ServiceHostBase.SetEndpointAddress Method (ServiceEndpoint, 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.

Sets the endpoint address of the specified endpoint to the specified address.

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

public void SetEndpointAddress(
	ServiceEndpoint endpoint,
	string relativeAddress
)

Parameters

endpoint
Type: System.ServiceModel.Description.ServiceEndpoint

The service endpoint.

relativeAddress
Type: System.String

The endpoint address.

.NET Framework
Available since 4.0
Return to top
Show: