dotConnect for MySQL Documentation
Devart.Data.MySql Namespace / MySqlLoaderColumn Class / MySqlLoaderColumn Constructor / MySqlLoaderColumn Constructor(String,MySqlType,Int32)
The name of the column.
One of the MySqlType values.
Maximum size of column data (only for strings).
Example

In This Topic
    MySqlLoaderColumn Constructor(String,MySqlType,Int32)
    In This Topic
    Initializes a new instance of the MySqlLoaderColumn class with the column name, column data type and column size.
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal name As String, _
       ByVal dbType As MySqlType, _
       ByVal size As Integer _
    )
    public MySqlLoaderColumn( 
       string name,
       MySqlType dbType,
       int size
    )

    Parameters

    name
    The name of the column.
    dbType
    One of the MySqlType values.
    size
    Maximum size of column data (only for strings).
    Remarks
    Use this constructor to create a MySqlLoaderColumn instance with column name, column data type and column data size.
    Example
    The following example creates a MySqlLoaderColumn and sets some of its properties.
    public void CreateMyLoaderColumn(MySqlLoader loader)
    {
      ...
      MySqlLoaderColumn column = new MySqlLoaderColumn("dname", MySqlType.VarChar, 25);
      loader.Add(column);
      ...
    }
    Public Sub CreateMyLoaderColumn(loader as MySqlLoader)
      ...
      Dim column as MySqlLoaderColumn = new MySqlLoaderColumn("dname", MySqlType.VarChar, 25)
      loader.Add(column)
      ...
    End Sub
    See Also