WsdlImporter::ImportBinding Method (Binding^)
.NET Framework (current version)
Returns a Binding object that represents binding information from a set of metadata documents.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Parameters
- wsdlBinding
-
Type:
System.Web.Services.Description::Binding^
A System.Web.Services.Description::Binding object that represents binding information in a metadata file.
Return Value
Type: System.ServiceModel.Channels::Binding^A System.ServiceModel.Channels::Binding object that represents binding information from a set of metadata documents.
| Exception | Condition |
|---|---|
| InvalidOperationException | The WsdlImporter has encountered an error. |
| ArgumentNullException | The wsdlBinding parameter is null. |
Use the ImportBinding method to use a System.Web.Services.Description::Binding object to locate binding information in the metadata and return that binding information as a System.ServiceModel.Channels::Binding object. 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: