Export (0) Print
Expand All

XmlElementAttributes Class

Represents a collection of XmlElementAttribute objects used by the XmlSerializer to override the default way it serializes a class.

System.Object
  System.Xml.Serialization.XmlElementAttributes

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

'Declaration
<DefaultMemberAttribute("Item")> _
Public Class XmlElementAttributes _
	Implements IList, ICollection, IEnumerable

The XmlElementAttributes type exposes the following members.

  NameDescription
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360XmlElementAttributesInitializes a new instance of the XmlElementAttributes class.
Top

  NameDescription
Public propertySupported by Silverlight for Windows PhoneSupported by Xbox 360CountGets the number of attributes contained in the collection.
Public propertySupported by Silverlight for Windows PhoneSupported by Xbox 360ItemGets or sets the attribute element at the specified index.
Top

  NameDescription
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360AddAdds an XmlElementAttribute to the collection.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360ClearRemoves all objects from the collection.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360ContainsDetermines whether the collection contains a specified XmlElementAttribute.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360CopyToCopies an XmlElementAttribute array to the collection, starting at a specified target index.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360Equals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows PhoneSupported by Xbox 360FinalizeAllows 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 360GetEnumeratorReturns an IEnumerator that can iterate through the collection.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360GetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360GetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360IndexOfReturns the zero-based index of the first occurrence of a specified XmlElementAttribute in the collection, or -1 if the attribute is not found in the collection.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360InsertInserts an XmlElementAttribute into the collection at the specified index.
Protected methodSupported by Silverlight for Windows PhoneSupported by Xbox 360MemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360RemoveRemoves a specified XmlElementAttribute from the collection, if it is present.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360RemoveAtRemoves an XmlElementAttribute item at a specified index from the collection.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360ToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public Extension MethodSupported by Silverlight for Windows PhoneAsQueryableConverts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension MethodSupported by Silverlight for Windows PhoneSupported by Xbox 360Cast(Of TResult)Converts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension MethodSupported by Silverlight for Windows PhoneSupported by Xbox 360OfType(Of TResult)Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)
Top

  NameDescription
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneSupported by Xbox 360ICollection.CopyToCopies 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 360ICollection.IsSynchronizedGets 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 360ICollection.SyncRootThis method is not supported.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneSupported by Xbox 360IList.AddAdds an item to the attribute list.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneSupported by Xbox 360IList.ContainsDetermines whether the attribute list contains a specific value.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneSupported by Xbox 360IList.IndexOfDetermines the index of a specified item in the attribute list.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneSupported by Xbox 360IList.InsertInserts an item in the list at a specified index.
Explicit interface implemetationPrivate propertySupported by Silverlight for Windows PhoneSupported by Xbox 360IList.IsFixedSizeGets a value that indicates whether the list has a fixed size.
Explicit interface implemetationPrivate propertySupported by Silverlight for Windows PhoneSupported by Xbox 360IList.IsReadOnlyGets a value that indicates whether the list is read-only.
Explicit interface implemetationPrivate propertySupported by Silverlight for Windows PhoneSupported by Xbox 360IList.ItemGets or sets the element at the specified index.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneSupported by Xbox 360IList.RemoveRemoves the first occurrence of a specific object from the list.
Top

The XmlElementAttributes is returned by the XmlElements property of the XmlAttributes class. By using the XmlAttributeOverrides class and the XmlAttributes class, you can override the default way that the XmlSerializer serializes a class.

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

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

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2014 Microsoft