XmlMemberMapping Class

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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.

Inheritance Hierarchy

System.Object
  System.Xml.Serialization.XmlMemberMapping

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

Syntax

'Declaration
Public Class XmlMemberMapping
public class XmlMemberMapping

The XmlMemberMapping type exposes the following members.

Properties

  Name Description
Public property Any Gets or sets a value that indicates whether the .NET Framework type maps to an XML element or attribute of any type.
Public property CheckSpecified Gets a value that indicates whether the accompanying field in the .NET Framework type has a value specified.
Public property ElementName Gets the unqualified name of the XML element declaration that applies to this mapping.
Public property MemberName Gets the name of the Web service method member that is represented by this mapping.
Public property Namespace Gets the XML namespace that applies to this mapping.
Public property TypeFullName Gets the fully qualified type name of the .NET Framework type for this mapping.
Public property TypeName Gets the type name of the .NET Framework type for this mapping.
Public property TypeNamespace Gets the namespace of the .NET Framework type for this mapping.
Public property XsdElementName Gets the XML element name as it appears in the service description document.

Top

Methods

  Name Description
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

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.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

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

Thread Safety

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