MessageEncodingBindingElementImporter Class

 
System_CAPS_noteNote

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

Converts WSDL-based policies and contracts about message encoding into descriptions of the binding elements that can implement these policies for the service.

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

System.Object
  System.ServiceModel.Channels.MessageEncodingBindingElementImporter

public class MessageEncodingBindingElementImporter : IWsdlImportExtension, 
	IPolicyImportExtension

NameDescription
System_CAPS_pubmethodMessageEncodingBindingElementImporter()

Initializes a new instance of the MessageEncodingBindingElementImporter class.

NameDescription
System_CAPS_pubmethodEquals(Object)

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

System_CAPS_protmethodFinalize()

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

System_CAPS_pubmethodGetHashCode()

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

System_CAPS_pubmethodGetType()

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

System_CAPS_protmethodMemberwiseClone()

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

System_CAPS_pubmethodToString()

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

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIPolicyImportExtension.ImportPolicy(MetadataImporter, PolicyConversionContext)

Defines a method that can import custom policy assertions for message encoding and that adds the binding elements that implement the policy.

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

Called prior to importing the metadata documents associated with the encoding.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIWsdlImportExtension.ImportContract(WsdlImporter, WsdlContractConversionContext)

Called when importing a contract.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIWsdlImportExtension.ImportEndpoint(WsdlImporter, WsdlEndpointConversionContext)

Maps the custom WSDL extensions for encoding messages to the service description.

Override this class to extend the standard mapping between WSDL and a message encoding binding element. 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 Service Trace Viewer Tool (SvcTraceViewer.exe) using an application configuration file.

Use the IWsdlImportExtension.BeforeImport method to directly modify the metadata that is then imported into message encoding binding elements.

.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
Show: