Gets or sets the capacity of the NameValueCollection.

Namespace: CodeSmith.CustomProperties
Assembly: CodeSmith.CustomProperties (in CodeSmith.CustomProperties.dll) Version: 6.0.0.0 (7.0.0.15127)

Syntax

C#
public virtual int Capacity { get; set; }
Visual Basic
Public Overridable Property Capacity As Integer
	Get
	Set

Property Value

Type: Int32
The number of elements that the NameValueCollection can contain.

Remarks

Please refer to Capacity for details.

Exceptions

ExceptionCondition
System..::..ArgumentOutOfRangeExceptionCapacity is set to a value that is less than Count.

See Also