Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

Excerpt

Sets or returns an array of columns names specifying the columns to import. 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.

Signature
C#
C#
<table class="diff-macro"><thead><tr><th class="diff-macro-title">unmigrated-wiki-markup</th></tr></thead><tbody><tr><td class="diff-macro-body"><pre>
 public System.String[] ColumnNameFilter{ get; set; }
</pre></td></tr></tbody></table>
Signature
vb.net
vb.net
Public <p>Public Property ColumnNameFilter() As String()</p>
Example
 
Code Block
csharp
csharp
titleC#
            //--- Return ColumnNameFilter
          String[] colNames = importProps.ColumnNameFilter;

          //--- Set ColumnNameFilter
          importProps.ColumnNameFilter = new String[]{"Name", "Address", "Zip"};
        
Code Block
vb.net
vb.net
titlevb.net
            '--- Return ColumnNameFilter
          Dim colNames As String() = importProps.ColumnNameFilter

          '--- Set ColumnNameFilter
          importProps.ColumnNameFilter = New String() {"Name", "Address", "Zip"}
        
Example