Επεξεργασία

Κοινή χρήση μέσω


WsdlImporter.ImportEndpoints Method

Definition

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

wsdlBinding
Binding

A Binding object used in a WSDL port.

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

wsdlPortType
PortType

The PortType object that is used to find associated WSDL port information.

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

wsdlService
Service

The Service object within which to search for WSDL port information.

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