Sets or returns an int that represents the maximum number of columns to be imported. If more columns than this are in the data source, the extra ones will be ignored.
public int MaxColumns{ get; set; }
Public Property MaxColumns() As Integer
The default value is 0, which represents unlimited columns.
//--- Return MaxColumns
int cols = importProps.MaxColumns;
//--- Set MaxRows
importProps.MaxColumns = 10;
'--- Return MaxColumns
Dim cols As Integer = importProps.MaxColumns
'--- Set MaxRows
importProps.MaxColumns = 10