ServiceHostBase.SetEndpointAddress(ServiceEndpoint, String) 方法

定義

將指定之端點的端點位址設定為指定的位址。Sets the endpoint address of the specified endpoint to the specified address.

public:
 void SetEndpointAddress(System::ServiceModel::Description::ServiceEndpoint ^ endpoint, System::String ^ relativeAddress);
public void SetEndpointAddress (System.ServiceModel.Description.ServiceEndpoint endpoint, string relativeAddress);
member this.SetEndpointAddress : System.ServiceModel.Description.ServiceEndpoint * string -> unit
Public Sub SetEndpointAddress (endpoint As ServiceEndpoint, relativeAddress As String)

參數

endpoint
ServiceEndpoint

服務端點。The service endpoint.

relativeAddress
String

端點位址。The endpoint address.

適用於