TransportBindingElementImporter Class


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Imports standard transport binding elements from Web Services Description Language (WSDL) documents with attached policy expressions.

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


public class TransportBindingElementImporter : IWsdlImportExtension, 


Initializes a new instance of the TransportBindingElementImporter class.


Determines whether the specified object is equal to the current object.(Inherited from Object.)


Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)


Serves as the default hash function. (Inherited from Object.)


Gets the Type of the current instance.(Inherited from Object.)


Creates a shallow copy of the current Object.(Inherited from Object.)


Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIPolicyImportExtension.ImportPolicy(MetadataImporter, PolicyConversionContext)

Imports a TransportBindingElement instance from the policy attached to the WSDL binding.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIWsdlImportExtension.BeforeImport(ServiceDescriptionCollection, XmlSchemaSet, ICollection<XmlElement>)

Adds custom policy assertions to the WSDL bindings in WSDL documents that are to be imported.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIWsdlImportExtension.ImportContract(WsdlImporter, WsdlContractConversionContext)

This method does nothing.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIWsdlImportExtension.ImportEndpoint(WsdlImporter, WsdlEndpointConversionContext)

Imports addressing information from the WSDL port and imports an HttpTransportBindingElement or an HttpsTransportBindingElement from the SOAP transport URI if a TransportBindingElement is not already imported from policy attached to the WSDL.

The TransportBindingElementImporter type is an implementation of the IWsdlImportExtension and IPolicyImportExtension interfaces. It imports the HttpTransportBindingElement, HttpsTransportBindingElement, TcpTransportBindingElement, NamedPipeTransportBindingElement, MsmqTransportBindingElement, and PeerTransportBindingElement instances from WSDL service metadata.

When these TransportBindingElement types are imported, the TransportBindingElementImporter type also imports the addressing information from the WSDL metadata.

.NET Framework
Available since 3.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top