Прочетете на английски Редактиране

Споделяне чрез


WsdlImporter.ImportBinding(Binding) Method

Definition

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

C#
public System.ServiceModel.Channels.Binding ImportBinding(System.Web.Services.Description.Binding wsdlBinding);

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

Продукт Версии
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1