WsdlImporter::ImportEndpoints Method (PortType^)
.NET Framework (current version)
Returns a ServiceEndpointCollection that represents all WSDL port types associated with the specified System.Web.Services.Description::PortType.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
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
Available since 3.0
Show: