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.