Sets the capacity to the actual number of elements in 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 void TrimToSize()
Visual Basic
Public Overridable Sub TrimToSize

Remarks

Please refer to TrimToSize()()()() for details.

Exceptions

ExceptionCondition
System..::..NotSupportedException

The NameValueCollection is read-only.

-or-

The NameValueCollection has a fixed size.

See Also