WsdlImporter.ImportEndpoints Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a collection of ServiceEndpoint objects that matches all WSDL ports using a specified binding, associated with a specified port type, or within a specified WSDL service.
Overloads
ImportEndpoints(Binding) |
Returns a ServiceEndpointCollection that represents all WSDL port types using the specified Binding. |
ImportEndpoints(PortType) |
Returns a ServiceEndpointCollection that represents all WSDL port types associated with the specified PortType. |
ImportEndpoints(Service) |
Returns a ServiceEndpointCollection that represents all WSDL port types within the specified Service. |
ImportEndpoints(Binding)
Returns a ServiceEndpointCollection that represents all WSDL port types using the specified Binding.
public:
System::ServiceModel::Description::ServiceEndpointCollection ^ ImportEndpoints(System::Web::Services::Description::Binding ^ wsdlBinding);
public System.ServiceModel.Description.ServiceEndpointCollection ImportEndpoints (System.Web.Services.Description.Binding wsdlBinding);
member this.ImportEndpoints : System.Web.Services.Description.Binding -> System.ServiceModel.Description.ServiceEndpointCollection
Public Function ImportEndpoints (wsdlBinding As Binding) As ServiceEndpointCollection
Parameters
Returns
A ServiceEndpointCollection that represents all WSDL port types using the specified Binding.
Exceptions
The WsdlImporter has encountered an error.
The wsdlBinding
is null
.
Remarks
Check the Errors property to determine whether there are any import errors before using the returned object.
Applies to
ImportEndpoints(PortType)
Returns a ServiceEndpointCollection that represents all WSDL port types associated with the specified PortType.
public:
System::ServiceModel::Description::ServiceEndpointCollection ^ ImportEndpoints(System::Web::Services::Description::PortType ^ wsdlPortType);
public System.ServiceModel.Description.ServiceEndpointCollection ImportEndpoints (System.Web.Services.Description.PortType wsdlPortType);
member this.ImportEndpoints : System.Web.Services.Description.PortType -> System.ServiceModel.Description.ServiceEndpointCollection
Public Function ImportEndpoints (wsdlPortType As PortType) As ServiceEndpointCollection
Parameters
Returns
A ServiceEndpointCollection that represents all WSDL port types associated with the specified PortType.
Exceptions
The WsdlImporter has encountered an error.
wsdlPortType
is null
.
Remarks
Check the Errors property to determine whether there are any import errors before using the returned object.
Applies to
ImportEndpoints(Service)
Returns a ServiceEndpointCollection that represents all WSDL port types within the specified Service.
public:
System::ServiceModel::Description::ServiceEndpointCollection ^ ImportEndpoints(System::Web::Services::Description::Service ^ wsdlService);
public System.ServiceModel.Description.ServiceEndpointCollection ImportEndpoints (System.Web.Services.Description.Service wsdlService);
member this.ImportEndpoints : System.Web.Services.Description.Service -> System.ServiceModel.Description.ServiceEndpointCollection
Public Function ImportEndpoints (wsdlService As Service) As ServiceEndpointCollection
Parameters
Returns
A ServiceEndpointCollection that represents all WSDL port types within the specified Service.
Exceptions
The WsdlImporter has encountered an error.
The wsdlService
is null
.
Remarks
Check the Errors property to determine whether there are any import errors before using the returned object.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈