StandardBindingImporter Class


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

Provides an extensibility point for mapping WSDL contracts and policy assertions into Windows Communication Foundation (WCF) standard bindings.

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


public class StandardBindingImporter : IWsdlImportExtension


Initializes a new instance of the StandardBindingImporter 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_privmethodIWsdlImportExtension.BeforeImport(ServiceDescriptionCollection, XmlSchemaSet, ICollection<XmlElement>)

Called prior to importing the metadata documents associated with the standard binding.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIWsdlImportExtension.ImportContract(WsdlImporter, WsdlContractConversionContext)

Provides an extensibility point for importing WSDL contract information for standard bindings.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIWsdlImportExtension.ImportEndpoint(WsdlImporter, WsdlEndpointConversionContext)

Provides an extensibility point for mapping endpoints defined in WSDL into the service description.

Override this class to extend the standard mapping between WSDL and a standard binding. Then attach your custom object to a WsdlImporter either programmatically or by using an application configuration file. You can also attach your custom object to the internal WsdlImporter used by the ServiceModel Metadata Utility Tool (Svcutil.exe) using an application configuration file.

Use the IWsdlImportExtension.BeforeImport method to directly modify the metadata that is then imported into standard binding objects.

.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