Skip to end of metadata
Go to start of metadata

Description

Sets or returns an array of column indexes specifying the columns to import.

C#
 public int[] ColumnIndexFilter{ get; set; }
vb.net
Public Property ColumnIndexFilter() As Integer()

Remarks

If the length of the specified array is greater than MaxColumns, or exceeds the size of the target area, the columns will be added in the order in which they appear in the array.

Examples

C#

          //--- Return ColumnIndexFilter
          int[] colIndexes = importProps.ColumnIndexFilter;

          //--- Set ColumnIndexFilter
          importProps.ColumnIndexFilter = new int[]{0,2,3,6};
        
vb.net

          '--- Return ColumnIndexFilter
          Dim colIndexes() As Integer = importProps.ColumnIndexFilter

          '--- Set ColumnIndexFilter
          importProps.ColumnIndexFilter = New Integer(){0, 2, 3, 6}
        
  • No labels