dotConnect for SQL Server Documentation
Devart.Data.SqlServer Namespace / SqlLoaderColumn Class / SqlLoaderColumn Constructor / SqlLoaderColumn Constructor(String,Type)
The name of the column.
The data type of the column.
Example

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

    Parameters

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