WsdlImporter.ImportEndpoints Metod

Definition

Returnerar en samling ServiceEndpoint objekt som matchar alla WSDL-portar med en angiven bindning som är associerad med en angiven porttyp eller inom en angiven WSDL-tjänst.

Överlagringar

Name Description
ImportEndpoints(Binding)

Returnerar en ServiceEndpointCollection som representerar alla WSDL-porttyper med den angivna Binding.

ImportEndpoints(PortType)

Returnerar en ServiceEndpointCollection som representerar alla WSDL-porttyper som är associerade med den angivna PortType.

ImportEndpoints(Service)

Returnerar en ServiceEndpointCollection som representerar alla WSDL-porttyper inom angiven Service.

ImportEndpoints(Binding)

Returnerar en ServiceEndpointCollection som representerar alla WSDL-porttyper med den angivna 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

Parametrar

wsdlBinding
Binding

Ett Binding objekt som används i en WSDL-port.

Returer

En ServiceEndpointCollection som representerar alla WSDL-porttyper med den angivna Binding.

Undantag

Ett WsdlImporter fel har uppstått.

wsdlBinding är null.

Kommentarer

Kontrollera egenskapen Errors för att avgöra om det finns några importfel innan du använder det returnerade objektet.

Gäller för

ImportEndpoints(PortType)

Returnerar en ServiceEndpointCollection som representerar alla WSDL-porttyper som är associerade med den angivna 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

Parametrar

wsdlPortType
PortType

Objektet PortType som används för att hitta associerad WSDL-portinformation.

Returer

En ServiceEndpointCollection som representerar alla WSDL-porttyper som är associerade med den angivna PortType.

Undantag

Ett WsdlImporter fel har uppstått.

wsdlPortType är null.

Kommentarer

Kontrollera egenskapen Errors för att avgöra om det finns några importfel innan du använder det returnerade objektet.

Gäller för

ImportEndpoints(Service)

Returnerar en ServiceEndpointCollection som representerar alla WSDL-porttyper inom angiven 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

Parametrar

wsdlService
Service

Objektet Service där WSDL-portinformation ska sökas efter.

Returer

En ServiceEndpointCollection som representerar alla WSDL-porttyper inom angiven Service.

Undantag

Ett WsdlImporter fel har uppstått.

wsdlService är null.

Kommentarer

Kontrollera egenskapen Errors för att avgöra om det finns några importfel innan du använder det returnerade objektet.

Gäller för