dotConnect for Salesforce Marketing Cloud Documentation
Devart.Common Namespace / DbLoaderColumn Class / Name Property
Example

Name Property (DbLoaderColumn)
Gets or sets the name of the DbLoaderColumn.
Syntax
'Declaration
 
Public Property Name As String
 

Property Value

The name of the DbLoaderColumn. The default value is an empty string ("").
Remarks
Every DbLoaderColumn object corresponds to one of the table fields with the same name as its Name property.
Example
public void GetDataColumns(ExactTargetConnection exactTargetConnection)
{
  
  exactTargetConnection.Open();
  ExactTargetLoader loader = new ExactTargetLoader();
  loader.Connection = exactTargetConnection;
  loader.TableName = "load_table";
  ExactTargetLoaderColumn myColumn;
  try
  {
    loader.CreateColumns();
    for (int i = 0; i < loader.Columns.Count; i++)
    {
      myColumn = loader.Columns[i];
      Console.WriteLine(myColumn.Name);
      Console.WriteLine(myColumn.ExactTargetType.ToString());
      Console.WriteLine(myColumn.Size);
      Console.WriteLine(myColumn.Scale);
      Console.WriteLine(myColumn.Precision);
      Console.WriteLine();
    }
   }
  finally
  {
    exactTargetConnection.Close();
  }
}
public void GetDataColumns(ExactTargetConnection exactTargetConnection)
{
  
  exactTargetConnection.Open();
  ExactTargetLoader loader = new ExactTargetLoader();
  loader.Connection = exactTargetConnection;
  loader.TableName = "load_table";
  ExactTargetLoaderColumn myColumn;
  try
  {
    loader.CreateColumns();
    for (int i = 0; i < loader.Columns.Count; i++)
    {
      myColumn = loader.Columns[i];
      Console.WriteLine(myColumn.Name);
      Console.WriteLine(myColumn.ExactTargetType.ToString());
      Console.WriteLine(myColumn.Size);
      Console.WriteLine(myColumn.Scale);
      Console.WriteLine(myColumn.Precision);
      Console.WriteLine();
    }
   }
  finally
  {
    exactTargetConnection.Close();
  }
}
See Also