XmlAnyElementAttributes Class
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Represents a collection of XmlAnyElementAttribute objects.
Assembly: System.Xml.Serialization (in System.Xml.Serialization.dll)
The XmlAnyElementAttributes type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | XmlAnyElementAttributes | Initializes a new instance of the XmlAnyElementAttributes class. |
| Name | Description | |
|---|---|---|
![]() | Add | Represents a collection of XmlAnyElementAttribute objects. |
![]() | Clear | Removes all objects from the collection. |
![]() | Contains | Determines whether the collection contains a specified XmlAnyElementAttribute. |
![]() | CopyTo | Copies an XmlAnyElementAttribute array to the collection, starting at a specified target index. |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | 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.) |
![]() | GetEnumerator | Returns an IEnumerator that can iterate through the collection. |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | 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. |
![]() | Insert | Inserts an XmlAnyElementAttribute into the collection at the specified index. |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | Remove | Removes a specified XmlAnyElementAttribute from the collection, if it is present. |
![]() | RemoveAt | Removes an XmlAnyElementAttribute item at a specified index from the collection. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() | AsQueryable | Converts an IEnumerable to an IQueryable. (Defined by Queryable.) |
![]() | Cast<TResult> | Converts the elements of an IEnumerable to the specified type. (Defined by Enumerable.) |
![]() | OfType<TResult> | Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.) |
| Name | Description | |
|---|---|---|
![]() ![]() | ICollection::CopyTo | Copies the elements from the attribute collection to an array, starting at a specified index of the array. |
![]() ![]() | ICollection::IsSynchronized | Gets a value that indicates whether access to the attribute collection is synchronized (thread safe). |
![]() ![]() | ICollection::SyncRoot | This method is not supported. |
![]() ![]() | IList::Add | Adds an item to the attribute list. |
![]() ![]() | IList::Contains | Determines whether the attribute list contains a specific value. |
![]() ![]() | IList::IndexOf | Determines the index of a specified item in the attribute list. |
![]() ![]() | IList::Insert | Inserts an item in the list at a specified index. |
![]() ![]() | IList::IsFixedSize | Gets a value that indicates whether the list has a fixed size. |
![]() ![]() | IList::IsReadOnly | Gets a value that indicates whether the list is read-only. |
![]() ![]() | IList::Item | Gets or sets the element at the specified index. |
![]() ![]() | IList::Remove | Removes the first occurrence of a specific object from the list. |
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.






