WsdlImporter.ImportBinding Method (Binding)

 

Returns a Binding object that represents binding information from a set of metadata documents.

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

public Binding ImportBinding(
	Binding wsdlBinding
)

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
Return to top
Show: