XmlAnyElementAttributes Class

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

Represents a collection of XmlAnyElementAttribute objects.

Inheritance Hierarchy

System.Object
  System.Xml.Serialization.XmlAnyElementAttributes

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

Syntax

'Declaration
<DefaultMemberAttribute("Item")> _
Public Class XmlAnyElementAttributes _
    Implements IList, ICollection, IEnumerable
[DefaultMemberAttribute("Item")]
public class XmlAnyElementAttributes : IList, 
    ICollection, IEnumerable

The XmlAnyElementAttributes type exposes the following members.

Constructors

  Name Description
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 XmlAnyElementAttributes Initializes a new instance of the XmlAnyElementAttributes class.

Top

Properties

  Name Description
Public propertySupported by Silverlight for Windows PhoneSupported by Xbox 360 Count Gets the number of attributes contained in the collection.
Public propertySupported by Silverlight for Windows PhoneSupported by Xbox 360 Item Gets or sets the attribute element at the specified index.

Top

Methods

  Name Description
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Add Represents a collection of XmlAnyElementAttribute objects.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Clear Removes all objects from the collection.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Contains Determines whether the collection contains a specified XmlAnyElementAttribute.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 CopyTo Copies an XmlAnyElementAttribute array to the collection, starting at a specified target index.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 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 methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetEnumerator Returns an IEnumerator that can iterate through the collection.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetType Gets the Type of the current instance. (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IndexOf Returns the zero-based index of the first occurrence of a specified XmlAnyElementAttribute in the collection, or -1 if the attribute is not found in the collection.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Insert Inserts an XmlAnyElementAttribute into the collection at the specified index.
Protected methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Remove Removes a specified XmlAnyElementAttribute from the collection, if it is present.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 RemoveAt Removes an XmlAnyElementAttribute item at a specified index from the collection.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Extension Methods

  Name Description
Public Extension MethodSupported by Silverlight for Windows Phone AsQueryable Converts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension MethodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Cast<TResult> Converts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension MethodSupported by Silverlight for Windows PhoneSupported by Xbox 360 OfType<TResult> Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 ICollection.CopyTo Copies the elements from the attribute collection to an array, starting at a specified index of the array.
Explicit interface implemetationPrivate propertySupported by Silverlight for Windows PhoneSupported by Xbox 360 ICollection.IsSynchronized Gets a value that indicates whether access to the attribute collection is synchronized (thread safe).
Explicit interface implemetationPrivate propertySupported by Silverlight for Windows PhoneSupported by Xbox 360 ICollection.SyncRoot This method is not supported.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IList.Add Adds an item to the attribute list.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IList.Contains Determines whether the attribute list contains a specific value.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IList.IndexOf Determines the index of a specified item in the attribute list.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IList.Insert Inserts an item in the list at a specified index.
Explicit interface implemetationPrivate propertySupported by Silverlight for Windows PhoneSupported by Xbox 360 IList.IsFixedSize Gets a value that indicates whether the list has a fixed size.
Explicit interface implemetationPrivate propertySupported by Silverlight for Windows PhoneSupported by Xbox 360 IList.IsReadOnly Gets a value that indicates whether the list is read-only.
Explicit interface implemetationPrivate propertySupported by Silverlight for Windows PhoneSupported by Xbox 360 IList.Item Gets or sets the element at the specified index.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IList.Remove Removes the first occurrence of a specific object from the list.

Top

Remarks

Use the XmlAnyElementAttributes to override the behavior of a set of XmlAnyElementAttribute objects. Multiple instances of the XmlAnyElementAttribute class can be applied to a class member, as long as each instance has a distinct Name property value. This instructs the XmlSerializer to collect unknown elements under the named element into the appropriate array. It is for this reason that multiple instances of the XmlAnyElementAttribute class can be added to the XmlAnyElementAttributes.

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.

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.