WsdlImporter.ImportAllEndpoints Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Returns a ServiceEndpointCollection that represents the endpoints in WSDL documents.

Namespace:   System.ServiceModel.Description
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public override ServiceEndpointCollection ImportAllEndpoints()

Return Value

Type: System.ServiceModel.Description.ServiceEndpointCollection

A ServiceEndpointCollection that represents the endpoints in WSDL documents.

Exception Condition
InvalidOperationException

The WsdlImporter has encountered an error.

Use the ImportAllEndpoints method to import all endpoint information from the metadata documents and return them as a collection of ServiceEndpoint objects. Check the Errors property to determine whether there are any import errors before using the returned objects.

To import only a specific WSDL port, see the ImportEndpoint method.

.NET Framework
Available since 3.0
Return to top
Show: