WsdlImporter.ImportAllEndpoints Metod

Definition

Returnerar en ServiceEndpointCollection som representerar slutpunkterna i WSDL-dokument.

public:
 override System::ServiceModel::Description::ServiceEndpointCollection ^ ImportAllEndpoints();
public override System.ServiceModel.Description.ServiceEndpointCollection ImportAllEndpoints();
override this.ImportAllEndpoints : unit -> System.ServiceModel.Description.ServiceEndpointCollection
Public Overrides Function ImportAllEndpoints () As ServiceEndpointCollection

Returer

En ServiceEndpointCollection som representerar slutpunkterna i WSDL-dokument.

Undantag

Ett WsdlImporter fel har uppstått.

Kommentarer

ImportAllEndpoints Använd metoden för att importera all slutpunktsinformation från metadatadokumenten och returnera dem som en samling ServiceEndpoint objekt. Kontrollera egenskapen Errors för att avgöra om det finns några importfel innan du använder de returnerade objekten.

Information om hur du importerar endast en specifik WSDL-port finns i ImportEndpoint metoden.

Gäller för