dotConnect for MySQL Documentation
Devart.Data.MySql Namespace / MySqlLoaderColumn Class / MySqlLoaderColumn Constructor / MySqlLoaderColumn Constructor(String,MySqlType)
The name of the column.
Example

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

    Parameters

    name
    The name of the column.
    dbType
    Remarks
    Use this constructor to create a MySqlLoaderColumn instance with column name and column data type.
    Example
    The following example creates a MySqlLoaderColumn and sets some of its properties.
    public void CreateMyLoaderColumn()
    {
      MySqlLoaderColumn column = new MySqlLoaderColumn("DName", MySqlType.VarChar);
      column.Size = 15;
    }
    Public Sub CreateMyLoaderColumn()
      Dim column As MySqlLoaderColumn
      column = New MySqlLoaderColumn("DName", MySqlType.VarChar)
      column.Size = 15
    End Sub
    See Also