XmlArrayItemAttributes XmlArrayItemAttributes XmlArrayItemAttributes XmlArrayItemAttributes Class

Definition

Represents a collection of XmlArrayItemAttribute objects.

public ref class XmlArrayItemAttributes : System::Collections::CollectionBase
public class XmlArrayItemAttributes : System.Collections.CollectionBase
type XmlArrayItemAttributes = class
    inherit CollectionBase
Public Class XmlArrayItemAttributes
Inherits CollectionBase
Inheritance
XmlArrayItemAttributesXmlArrayItemAttributesXmlArrayItemAttributesXmlArrayItemAttributes

Remarks

The XmlArrayItemAttributes class allows you to specify the derived types that can be inserted into an array returned by a public field or public read/write property.

An instance of this class is returned by the XmlArrayItems property of the XmlAttributes class. The XmlAttributes class is used when overriding the set of XmlArrayItemAttribute objects that can be inserted into an array to which the XmlArrayAttribute has been applied.

For each new type you want the field or property to accept, create an XmlArrayItemAttribute and use the Add to add the object to the XmlArrayItemAttributes collection returned by the XmlArrayItems property. Add the XmlAttributes to an XmlAttributeOverrides, that specifies the type of the object that contains the field or property, and the name of the field or property. Construct an XmlSerializer with the XmlAttributeOverrides before calling the Serialize or Deserialize method.

Constructors

XmlArrayItemAttributes() XmlArrayItemAttributes() XmlArrayItemAttributes() XmlArrayItemAttributes()

Initializes a new instance of the XmlArrayItemAttributes class.

Properties

Capacity Capacity Capacity Capacity

Gets or sets the number of elements that the CollectionBase can contain.

(Inherited from CollectionBase)
Count Count Count Count
InnerList InnerList InnerList InnerList

Gets an ArrayList containing the list of elements in the CollectionBase instance.

(Inherited from CollectionBase)
Item[Int32] Item[Int32] Item[Int32] Item[Int32]

Gets or sets the item at the specified index.

List List List List

Gets an IList containing the list of elements in the CollectionBase instance.

(Inherited from CollectionBase)

Methods

Add(XmlArrayItemAttribute) Add(XmlArrayItemAttribute) Add(XmlArrayItemAttribute) Add(XmlArrayItemAttribute)

Adds an XmlArrayItemAttribute to the collection.

Clear() Clear() Clear() Clear()
Contains(XmlArrayItemAttribute) Contains(XmlArrayItemAttribute) Contains(XmlArrayItemAttribute) Contains(XmlArrayItemAttribute)

Determines whether the collection contains the specified XmlArrayItemAttribute.

CopyTo(XmlArrayItemAttribute[], Int32) CopyTo(XmlArrayItemAttribute[], Int32) CopyTo(XmlArrayItemAttribute[], Int32) CopyTo(XmlArrayItemAttribute[], Int32)

Copies an XmlArrayItemAttribute array to the collection, starting at a specified target index.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
IndexOf(XmlArrayItemAttribute) IndexOf(XmlArrayItemAttribute) IndexOf(XmlArrayItemAttribute) IndexOf(XmlArrayItemAttribute)

Returns the zero-based index of the first occurrence of the specified XmlArrayItemAttribute in the collection or -1 if the attribute is not found in the collection.

Insert(Int32, XmlArrayItemAttribute) Insert(Int32, XmlArrayItemAttribute) Insert(Int32, XmlArrayItemAttribute) Insert(Int32, XmlArrayItemAttribute)

Inserts an XmlArrayItemAttribute into the collection at the specified index.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
OnClear() OnClear() OnClear() OnClear()

Performs additional custom processes when clearing the contents of the CollectionBase instance.

(Inherited from CollectionBase)
OnClearComplete() OnClearComplete() OnClearComplete() OnClearComplete()

Performs additional custom processes after clearing the contents of the CollectionBase instance.

(Inherited from CollectionBase)
OnInsert(Int32, Object) OnInsert(Int32, Object) OnInsert(Int32, Object) OnInsert(Int32, Object)

Performs additional custom processes before inserting a new element into the CollectionBase instance.

(Inherited from CollectionBase)
OnInsertComplete(Int32, Object) OnInsertComplete(Int32, Object) OnInsertComplete(Int32, Object) OnInsertComplete(Int32, Object)

Performs additional custom processes after inserting a new element into the CollectionBase instance.

(Inherited from CollectionBase)
OnRemove(Int32, Object) OnRemove(Int32, Object) OnRemove(Int32, Object) OnRemove(Int32, Object)

Performs additional custom processes when removing an element from the CollectionBase instance.

(Inherited from CollectionBase)
OnRemoveComplete(Int32, Object) OnRemoveComplete(Int32, Object) OnRemoveComplete(Int32, Object) OnRemoveComplete(Int32, Object)

Performs additional custom processes after removing an element from the CollectionBase instance.

(Inherited from CollectionBase)
OnSet(Int32, Object, Object) OnSet(Int32, Object, Object) OnSet(Int32, Object, Object) OnSet(Int32, Object, Object)

Performs additional custom processes before setting a value in the CollectionBase instance.

(Inherited from CollectionBase)
OnSetComplete(Int32, Object, Object) OnSetComplete(Int32, Object, Object) OnSetComplete(Int32, Object, Object) OnSetComplete(Int32, Object, Object)

Performs additional custom processes after setting a value in the CollectionBase instance.

(Inherited from CollectionBase)
OnValidate(Object) OnValidate(Object) OnValidate(Object) OnValidate(Object)

Performs additional custom processes when validating a value.

(Inherited from CollectionBase)
Remove(XmlArrayItemAttribute) Remove(XmlArrayItemAttribute) Remove(XmlArrayItemAttribute) Remove(XmlArrayItemAttribute)

Removes an XmlArrayItemAttribute from the collection, if it is present.

RemoveAt(Int32) RemoveAt(Int32) RemoveAt(Int32) RemoveAt(Int32)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32)
ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized
ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot
IList.Add(Object) IList.Add(Object) IList.Add(Object) IList.Add(Object)
IList.Contains(Object) IList.Contains(Object) IList.Contains(Object) IList.Contains(Object)
IList.IndexOf(Object) IList.IndexOf(Object) IList.IndexOf(Object) IList.IndexOf(Object)
IList.Insert(Int32, Object) IList.Insert(Int32, Object) IList.Insert(Int32, Object) IList.Insert(Int32, Object)
IList.IsFixedSize IList.IsFixedSize IList.IsFixedSize IList.IsFixedSize
IList.IsReadOnly IList.IsReadOnly IList.IsReadOnly IList.IsReadOnly
IList.Item[Int32] IList.Item[Int32] IList.Item[Int32] IList.Item[Int32]
IList.Remove(Object) IList.Remove(Object) IList.Remove(Object) IList.Remove(Object)

Extension Methods

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Applies to

See also