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
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also