XmlAttributeOverrides.Item Property (Type)

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

Gets the object associated with the specified base-class type.

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

Syntax

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

Parameters

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

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 attributes for an XmlRootAttribute or XmlTypeAttribute object.

If the XmlAttributes object contains objects that override an XmlArrayAttribute, XmlArrayItemAttribute, XmlElementAttribute, XmlEnumAttribute, or XmlAttributeAttribute, you must use the overload that specifies the overridden member as well as the 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.