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

端點位址。

適用於