WsdlImporter.ImportEndpoints Método

Definição

Retorna uma coleção de objetos ServiceEndpoint que corresponde a todas as portas WSDL que usam uma associação especificada, que são associadas a um tipo de porta especificado ou que estão em um serviço WSDL especificado.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.

Sobrecargas

ImportEndpoints(Binding)

Retorna um ServiceEndpointCollection que representa todos os tipos de porta WSDL que usam a Binding especificada.Returns a ServiceEndpointCollection that represents all WSDL port types using the specified Binding.

ImportEndpoints(PortType)

Retorna uma ServiceEndpointCollection que representa todos os tipos de porta WSDL associados ao PortType.Returns a ServiceEndpointCollection that represents all WSDL port types associated with the specified PortType.

ImportEndpoints(Service)

Retorna uma ServiceEndpointCollection que representa todos os tipos de porta WSDL no Service especificado.Returns a ServiceEndpointCollection that represents all WSDL port types within the specified Service.

ImportEndpoints(Binding)

Retorna um ServiceEndpointCollection que representa todos os tipos de porta WSDL que usam a Binding especificada.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

Parâmetros

wsdlBinding
Binding

Um objeto Binding usado em uma porta WSDL.A Binding object used in a WSDL port.

Retornos

ServiceEndpointCollection

Uma ServiceEndpointCollection que representa todos os tipos de porta WSDL que usam a Binding especificada.A ServiceEndpointCollection that represents all WSDL port types using the specified Binding.

Exceções

O WsdlImporter encontrou um erro.The WsdlImporter has encountered an error.

O wsdlBinding é null.The wsdlBinding is null.

Comentários

Verifique a Errors propriedade para determinar se há erros de importação antes de usar o objeto retornado.Check the Errors property to determine whether there are any import errors before using the returned object.

Aplica-se a

ImportEndpoints(PortType)

Retorna uma ServiceEndpointCollection que representa todos os tipos de porta WSDL associados ao 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

Parâmetros

wsdlPortType
PortType

O objeto PortType que é usado para localizar as informações da porta WSDL associada.The PortType object that is used to find associated WSDL port information.

Retornos

ServiceEndpointCollection

Um ServiceEndpointCollection que representa todos os tipos de porta WSDL associados ao PortType.A ServiceEndpointCollection that represents all WSDL port types associated with the specified PortType.

Exceções

O WsdlImporter encontrou um erro.The WsdlImporter has encountered an error.

wsdlPortType é null.wsdlPortType is null.

Comentários

Verifique a Errors propriedade para determinar se há erros de importação antes de usar o objeto retornado.Check the Errors property to determine whether there are any import errors before using the returned object.

Aplica-se a

ImportEndpoints(Service)

Retorna uma ServiceEndpointCollection que representa todos os tipos de porta WSDL no Service especificado.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

Parâmetros

wsdlService
Service

O objeto Service no qual se deve pesquisar as informações de porta WSDL.The Service object within which to search for WSDL port information.

Retornos

ServiceEndpointCollection

Uma ServiceEndpointCollection que representa todos os tipos de porta WSDL no Service especificado.A ServiceEndpointCollection that represents all WSDL port types within the specified Service.

Exceções

O WsdlImporter encontrou um erro.The WsdlImporter has encountered an error.

O wsdlService é null.The wsdlService is null.

Comentários

Verifique a Errors propriedade para determinar se há erros de importação antes de usar o objeto retornado.Check the Errors property to determine whether there are any import errors before using the returned object.

Aplica-se a