Endpoint.GetAddress 方法

定义

获取终结点的地址。Gets the address of the endpoint.

重载

GetAddress()

获取终结点的地址。Gets the address of the endpoint.

GetAddress(ServiceHostBase)

使用指定的 ServiceHostBase 实例获取终结点的地址。Gets the address of the endpoint using the specified ServiceHostBase instance.

GetAddress()

获取终结点的地址。Gets the address of the endpoint.

public:
 System::ServiceModel::EndpointAddress ^ GetAddress();
public System.ServiceModel.EndpointAddress GetAddress ();
member this.GetAddress : unit -> System.ServiceModel.EndpointAddress
Public Function GetAddress () As EndpointAddress

返回

EndpointAddress

终结点的 EndpointAddressThe EndpointAddress of the endpoint.

适用于

GetAddress(ServiceHostBase)

使用指定的 ServiceHostBase 实例获取终结点的地址。Gets the address of the endpoint using the specified ServiceHostBase instance.

public:
 System::ServiceModel::EndpointAddress ^ GetAddress(System::ServiceModel::ServiceHostBase ^ host);
public System.ServiceModel.EndpointAddress GetAddress (System.ServiceModel.ServiceHostBase host);
member this.GetAddress : System.ServiceModel.ServiceHostBase -> System.ServiceModel.EndpointAddress
Public Function GetAddress (host As ServiceHostBase) As EndpointAddress

参数

host
ServiceHostBase

要使用的 ServiceHostBase 实例。The ServiceHostBase instance to use.

返回

EndpointAddress

终结点的 EndpointAddressThe EndpointAddress of the endpoint.

适用于