Gets or sets the total number of elements the internal data structure can hold without resizing.
Namespace: Facilita.NativeAssembly: clrNativeWrapper (in clrNativeWrapper.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
Field Value
The number of elements that the RegExpMatchList can contain before resizing is required.Exceptions
Exception | Condition |
---|---|
System ArgumentOutOfRangeException | Capacity is set to a value that is less than Count. |
System OutOfMemoryException | There is not enough memory available on the system. |
Remarks
Capacity is always greater than or equal to Count. If Count exceeds Capacity while adding elements, the capacity is increased by automatically reallocating the internal array before copying the old elements and adding the new elements.
Retrieving the value of this property is an O(1) operation; setting the property is an O(n) operation, where n is the new capacity.
See Also