SalesforceLoaderColumnCollection Class
Represents a collection of columns relevant to a
SalesforceLoader.
Following example displays all loader columns.
public void DisplayColumns(string tableName, SalesforceConnection conn) {
// Create loader instance
SalesforceLoader loader = new SalesforceLoader();
// Set up working connection
// Connection must be opened
loader.Connection = conn;
// Set up table name for loading
loader.TableName = tableName;
// Create column collection for loading table
loader.CreateColumns();
// Iterate through column collection
foreach (SalesforceLoaderColumn column in loader.Columns)
Console.WriteLine(column.Name);
}
Public Sub DisplayColumns(tableName as string, conn as SalesforceConnection)
' Create loader instance
Dim loader as SalesforceLoader = new SalesforceLoader()
' Set up working connection
' Connection must be opened
loader.Connection = conn
' Set up table name for loading
loader.TableName = tableName
' Create column collection for loading table
loader.CreateColumns()
' Iterate through column collection
Dim column as SalesforceLoaderColumn
For Each column in loader.Columns
Console.WriteLine(column.Name)
Next
End Sub
Target Platforms: 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