XmlMemberMapping Class

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Maps a code entity in a .NET Framework Web service method to an element in a Web Services Description Language (WSDL) message.


Namespace:  System.Xml.Serialization
Assembly:  System.Xml.Serialization (in System.Xml.Serialization.dll)

Public Class XmlMemberMapping

The XmlMemberMapping type exposes the following members.

Public propertyAnyGets or sets a value that indicates whether the .NET Framework type maps to an XML element or attribute of any type.
Public propertyCheckSpecifiedGets a value that indicates whether the accompanying field in the .NET Framework type has a value specified.
Public propertyElementNameGets the unqualified name of the XML element declaration that applies to this mapping.
Public propertyMemberNameGets the name of the Web service method member that is represented by this mapping.
Public propertyNamespaceGets the XML namespace that applies to this mapping.
Public propertyTypeFullNameGets the fully qualified type name of the .NET Framework type for this mapping.
Public propertyTypeNameGets the type name of the .NET Framework type for this mapping.
Public propertyTypeNamespaceGets the namespace of the .NET Framework type for this mapping.
Public propertyXsdElementNameGets the XML element name as it appears in the service description document.

Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

The XmlMemberMapping class is used with the XmlMembersMapping class, which references an array of XmlMemberMapping objects.

An XmlMemberMapping object can represent any one of the following:

  • A Web service method input parameter.

  • A Web service method output parameter.

  • A Web service return type, if not void.

  • A SOAP input header.

  • A SOAP output header.

The XmlMemberMapping objects are accessible through the indexed operator property.

See the XmlMembersMapping class for an explanation of the conditions under which an XmlMemberMapping object corresponds to a WSDL message definition's <part> element.


Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

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

Community Additions