WsdlImporter.ImportAllEndpoints 方法
定义
返回一个表示 WSDL 文档中的终结点的 ServiceEndpointCollection。Returns a ServiceEndpointCollection that represents the endpoints in WSDL documents.
public:
override System::ServiceModel::Description::ServiceEndpointCollection ^ ImportAllEndpoints();
public override System.ServiceModel.Description.ServiceEndpointCollection ImportAllEndpoints ();
override this.ImportAllEndpoints : unit -> System.ServiceModel.Description.ServiceEndpointCollection
Public Overrides Function ImportAllEndpoints () As ServiceEndpointCollection
返回
一个 ServiceEndpointCollection,表示 WSDL 文档中的终结点。A ServiceEndpointCollection that represents the endpoints in WSDL documents.
例外
WsdlImporter 遇到错误。The WsdlImporter has encountered an error.
注解
使用 ImportAllEndpoints 方法可从元数据文档导入所有终结点信息,并将它们作为 ServiceEndpoint 对象的集合返回。Use the ImportAllEndpoints method to import all endpoint information from the metadata documents and return them as a collection of ServiceEndpoint objects. 在使用返回的对象之前,请检查 Errors 属性以确定是否有任何导入错误。Check the Errors property to determine whether there are any import errors before using the returned objects.
若仅导入某个特定 WSDL 端口,请参见 ImportEndpoint 方法。To import only a specific WSDL port, see the ImportEndpoint method.