WsdlImporter.ImportEndpoints Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
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
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
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
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.