Version

SetCount Method

Sets the row count to the specified count. If the new count is greater than the current count, new rows are added at the end of the collection. If the new count is less than the current count, rows are removed from the end of the collection.
Overload List
OverloadDescription
SetCount(Int32)Sets the row count to the specified count. If the new count is greater than the current count, new rows are added at the end of the collection. If the new count is less than the current count, rows are removed from the end of the collection.  
SetCount(Int32,Boolean)Sets the row count to the specified count. If the new count is greater than the current count, new rows are added at the end of the collection. If the new count is less than the current count, rows are removed from the end of the collection.  
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also