แก้ไข

แชร์ผ่าน


WsdlImporter.ImportBinding(Binding) Method

Definition

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

public:
 System::ServiceModel::Channels::Binding ^ ImportBinding(System::Web::Services::Description::Binding ^ wsdlBinding);
public System.ServiceModel.Channels.Binding ImportBinding (System.Web.Services.Description.Binding wsdlBinding);
member this.ImportBinding : System.Web.Services.Description.Binding -> System.ServiceModel.Channels.Binding
Public Function ImportBinding (wsdlBinding As Binding) As Binding

Parameters

wsdlBinding
Binding

A Binding object that represents binding information in a metadata file.

Returns

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

Exceptions

The WsdlImporter has encountered an error.

The wsdlBinding parameter is null.

Remarks

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.

Applies to