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

On this page
    SnowflakeLoaderColumn Constructor(String,SnowflakeType,Int32)
    On this page
    Initializes a new instance of the SnowflakeLoaderColumn class with the column name, column data type and column size.
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal name As String, _
       ByVal dbType As SnowflakeType, _
       ByVal size As Integer _
    )
    public SnowflakeLoaderColumn( 
       string name,
       SnowflakeType dbType,
       int size
    )

    Parameters

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