XmlAnyElementAttributes Class

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.

System::Object
  System.Xml.Serialization::XmlAnyElementAttributes

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

No code example is currently available or this language may not be supported.

The XmlAnyElementAttributes type exposes the following members.

  NameDescription
Public methodXmlAnyElementAttributesInitializes a new instance of the XmlAnyElementAttributes class.
Top

  NameDescription
Public propertyCountGets the number of attributes contained in the collection.
Public propertyItemGets or sets the attribute element at the specified index.
Top

  NameDescription
Public methodAddRepresents a collection of XmlAnyElementAttribute objects.
Public methodClearRemoves all objects from the collection.
Public methodContainsDetermines whether the collection contains a specified XmlAnyElementAttribute.
Public methodCopyToCopies an XmlAnyElementAttribute array to the collection, starting at a specified target index.
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetEnumeratorReturns an IEnumerator that can iterate through the collection.
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodIndexOfReturns 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 methodInsertInserts an XmlAnyElementAttribute into the collection at the specified index.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodRemoveRemoves a specified XmlAnyElementAttribute from the collection, if it is present.
Public methodRemoveAtRemoves an XmlAnyElementAttribute item at a specified index from the collection.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public Extension MethodAsQueryableConverts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension MethodCast<TResult>Converts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension MethodOfType<TResult>Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)
Top

  NameDescription
Explicit interface implemetationPrivate methodICollection::CopyToCopies the elements from the attribute collection to an array, starting at a specified index of the array.
Explicit interface implemetationPrivate propertyICollection::IsSynchronizedGets a value that indicates whether access to the attribute collection is synchronized (thread safe).
Explicit interface implemetationPrivate propertyICollection::SyncRootThis method is not supported.
Explicit interface implemetationPrivate methodIList::AddAdds an item to the attribute list.
Explicit interface implemetationPrivate methodIList::ContainsDetermines whether the attribute list contains a specific value.
Explicit interface implemetationPrivate methodIList::IndexOfDetermines the index of a specified item in the attribute list.
Explicit interface implemetationPrivate methodIList::InsertInserts an item in the list at a specified index.
Explicit interface implemetationPrivate propertyIList::IsFixedSizeGets a value that indicates whether the list has a fixed size.
Explicit interface implemetationPrivate propertyIList::IsReadOnlyGets a value that indicates whether the list is read-only.
Explicit interface implemetationPrivate propertyIList::ItemGets or sets the element at the specified index.
Explicit interface implemetationPrivate methodIList::RemoveRemoves the first occurrence of a specific object from the list.
Top

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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

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

Show:
© 2017 Microsoft