Column 构造函数 (SqlSmoObject, String, DataType)
初始化具有指定父对象和指定名称的 Column 类的新实例。
命名空间: Microsoft.SqlServer.Management.Smo
程序集: Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)
语法
声明
Public Sub New ( _
parent As SqlSmoObject, _
name As String, _
dataType As DataType _
)
用法
Dim parent As SqlSmoObject
Dim name As String
Dim dataType As DataType
Dim instance As New Column(parent, _
name, dataType)
public Column(
SqlSmoObject parent,
string name,
DataType dataType
)
public:
Column(
SqlSmoObject^ parent,
String^ name,
DataType^ dataType
)
new :
parent:SqlSmoObject *
name:string *
dataType:DataType -> Column
public function Column(
parent : SqlSmoObject,
name : String,
dataType : DataType
)
参数
- parent
类型:Microsoft.SqlServer.Management.Smo. . :: . .SqlSmoObject
一个指定 Column 对象的父对象的 SqlSmoObject 对象。
- name
类型:System. . :: . .String
一个指定列名称的 String 值。
- dataType
类型:Microsoft.SqlServer.Management.Smo. . :: . .DataType
一个指定分配给列的数据类型的 DataType 对象值。