The internal capacity of this attribute collection.
[Visual Basic] Public Property Capacity As Integer [C#] public int Capacity {get; set;} [C++] public: __property int get_Capacity(); public: __property void set_Capacity(int); [JScript] public function get Capacity() : int; public function set Capacity(int);
This property represents the size of the internal array that is used to store the attributes. The array automatically grows when attributes are added to the collection, starting at an initial size of four and then doubling as needed. When a known number of attributes are to be added to the collection, setting the capacity to that number will avoid redundant reallocations of the internal array.
XmlAttributeCollection Class | XmlAttributeCollection Members | System.Xml Namespace