Sets the capacity to the actual number of elements in the NameValueCollection.
Namespace: CodeSmith.CustomPropertiesAssembly: CodeSmith.CustomProperties (in CodeSmith.CustomProperties.dll) Version: 6.0.0.0 (7.0.0.15127)
Syntax
| C# |
|---|
public virtual void TrimToSize() |
| Visual Basic |
|---|
Public Overridable Sub TrimToSize |
Remarks
Please refer to TrimToSize()()()() for details.
Exceptions
| Exception | Condition |
|---|---|
| System..::..NotSupportedException | The NameValueCollection is read-only. -or- The NameValueCollection has a fixed size. |