NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DataTable.MinimumCapacity

Gets or sets the initial starting size for this table.

[Visual Basic]
Public Property MinimumCapacity As Integer
[C#]
public int MinimumCapacity {get; set;}
[C++]
public: __property int get_MinimumCapacity();
public: __property void set_MinimumCapacity(int);
[JScript]
public function get MinimumCapacity() : int;
public function set MinimumCapacity(int);

Property Value

The initial starting size in rows of this table. The default is 25.

Remarks

The MinimumCapacity allows the system to create an appropriate set of resources before fetching data. In a situation when performance is critical, setting this property can optimize performance.

Example

The following example sets the MinimumCapacity of a DataTable.

See Also

DataTable Class | DataTable Members | System.Data Namespace