Partager via


Column Constructor (SqlSmoObject, String, DataType)

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

Espace de noms: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Syntaxe

'Déclaration
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
)

Paramètres

  • 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.

Notes

Cet espace de noms, cette classe ou ce membre est pris en charge uniquement par la version 2.0 de Microsoft .NET Framework.

Exemple

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

Plateformes

Plateformes de développement

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Plateformes cibles

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Voir aussi

Référence

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

Autres ressources

CREATE TABLE (Transact-SQL)
Working with Database Objects