ServiceHostBase.SetEndpointAddress(ServiceEndpoint, String) 方法

定义

将指定终结点的终结点地址设置为指定的地址。

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

服务终结点。

relativeAddress
String

终结点地址。

适用于