Del via


Column Constructor (SqlSmoObject, String, DataType)

Initializes a new instance of the Column class with the specified parent and specified name.

Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Syntax

'Declaration
Public Sub New ( _
    parent As SqlSmoObject, _
    name As String, _
    dataType As DataType _
)
public Column (
    SqlSmoObject parent,
    string name,
    DataType dataType
)
public:
Column (
    SqlSmoObject^ parent, 
    String^ name, 
    DataType^ dataType
)
public Column (
    SqlSmoObject parent, 
    String name, 
    DataType dataType
)
public function Column (
    parent : SqlSmoObject, 
    name : String, 
    dataType : DataType
)

Parameters

  • parent
  • name
    A String value that specifies the name of the column.
  • dataType
    A DataType object value that specifies the data type assigned to the column.

Remarks

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

Example

How to: Create, Alter, and Remove a Table in Visual Basic .NET

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

See Also

Reference

Column Class
Column Members
Microsoft.SqlServer.Management.Smo Namespace

Other Resources

CREATE TABLE (Transact-SQL)
Working with Database Objects