WsdlImporter::ImportEndpoints Method (PortType^)

 

Returns a ServiceEndpointCollection that represents all WSDL port types associated with the specified System.Web.Services.Description::PortType.

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

public:
ServiceEndpointCollection^ ImportEndpoints(
	PortType^ wsdlPortType
)

Parameters

wsdlPortType
Type: System.Web.Services.Description::PortType^

The System.Web.Services.Description::PortType object that is used to find associated WSDL port information.

Return Value

Type: System.ServiceModel.Description::ServiceEndpointCollection^

A ServiceEndpointCollection that represents all WSDL port types associated with the specified System.Web.Services.Description::PortType.

Exception Condition
InvalidOperationException

The WsdlImporter has encountered an error.

ArgumentNullException

The wsdlBinding is null.

ArgumentNullException

The wsdlPortType is null.

Check the Errors property to determine whether there are any import errors before using the returned object.

.NET Framework
Available since 3.0
Return to top
Show: