Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
XmlMemberMapping Class
Collapse the table of content
Expand the table of content

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 (in System.Xml.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 it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGenerateTypeNameReturns the name of the type associated with the specified CodeDomProvider.
Public methodGetHashCodeServes as the default hash function. (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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

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