Partager via


XmlAttributeOverrides.Item Property (Type, String)

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

Gets the object associated with the specified base-class type. The member parameter specifies the base-class member that is overridden.

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

Syntax

'Declaration
Public ReadOnly Property Item ( _
    type As Type, _
    member As String _
) As XmlAttributes
public XmlAttributes this[
    Type type,
    string member
] { get; }

Parameters

  • type
    Type: System.Type
    The base class Type that is associated with the collection of attributes you want.

Property Value

Type: System.Xml.Serialization.XmlAttributes
An XmlAttributes that represents the collection of overriding attributes.

Remarks

Use this overload to return an XmlAttributes object that contains objects that override an XmlArrayAttribute, XmlArrayItemAttribute, XmlAttributeAttribute, XmlElementAttribute, or XmlEnumAttribute. If the XmlAttributes object contains an XmlRootAttribute or XmlTypeAttribute, you must use the overload that specifies only the overridden type.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

Platforms

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