Gets or sets the capacity of the NameValueCollection.
Namespace: CodeSmith.CustomPropertiesAssembly: 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: Int32The number of elements that the NameValueCollection can contain.
Remarks
Please refer to Capacity for details.
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentOutOfRangeException | Capacity is set to a value that is less than Count. |