Sdílet prostřednictvím


XmlReflectionMember 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.

Provides mappings between code entities in .NET Framework Web service methods and the content of Web Services Description Language (WSDL) messages that are defined for SOAP Web services.

Inheritance Hierarchy

System.Object
  System.Xml.Serialization.XmlReflectionMember

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

Syntax

'Declaration
Public Class XmlReflectionMember
public class XmlReflectionMember

The XmlReflectionMember type exposes the following members.

Constructors

  Name Description
Public method XmlReflectionMember Initializes a new instance of the XmlReflectionMember class.

Top

Properties

  Name Description
Public property IsReturnValue Gets or sets a value that indicates whether the XmlReflectionMember represents a Web service method return value, as opposed to an output parameter.
Public property MemberName Gets or sets the name of the Web service method member for this mapping.
Public property MemberType Gets or sets the type of the Web service method member code entity that is represented by this mapping.
Public property OverrideIsNullable Gets or sets a value that indicates that the value of the corresponding XML element definition's isNullable attribute is false.
Public property XmlAttributes Gets or sets an XmlAttributes with the collection of XmlSerializer-related attributes that have been applied to the member code entity.

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 XmlReflectionMember class is not used directly. Instead, it is used:

During reflection of a SOAP Web service method, arrays of XmlReflectionMember objects are produced that represent the contents of WSDL message definitions. An array is produced for each of the following items that belong to a SOAP Web service method:

  • Input parameters.

  • Output parameters and return values.

  • Request SOAP headers using attributes.

  • Response SOAP headers using attributes.

The SoapReflectionImporter and XmlReflectionImporter classes translate an XmlReflectionMember array into an XmlMembersMapping that contains an XmlMemberMapping collection, for further processing.

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.