Share via


WsdlImporter.ImportEndpoint(Port) 方法

定义

从一组元数据文档中返回 ServiceEndpoint,该组文档使用指定 Port 对象中的信息。

public:
 System::ServiceModel::Description::ServiceEndpoint ^ ImportEndpoint(System::Web::Services::Description::Port ^ wsdlPort);
public System.ServiceModel.Description.ServiceEndpoint ImportEndpoint (System.Web.Services.Description.Port wsdlPort);
member this.ImportEndpoint : System.Web.Services.Description.Port -> System.ServiceModel.Description.ServiceEndpoint
Public Function ImportEndpoint (wsdlPort As Port) As ServiceEndpoint

参数

wsdlPort
Port

一个表示所需 WSDL 端口信息的 Port 对象。

返回

一个 ServiceEndpoint 对象,表示元数据文档中的特定 WSDL 端口信息。

例外

wsdlPortnull

注解

使用 ImportEndpoint 方法可利用 System.Web.Services.Description.Port 对象在元数据中查找端口类型信息,并将该信息作为 ServiceEndpoint 对象返回。 在使用返回的对象之前,请检查 Errors 属性以确定是否有任何导入错误。

适用于