Column 建構函式 (SqlSmoObject, String, DataType, Boolean)
使用指定的父項和 datayype 初始化 Column 類別的新執行個體,並可選擇是否加入 FILESTREAM 屬性。
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Public Sub New ( _
parent As SqlSmoObject, _
name As String, _
dataType As DataType, _
isFileStream As Boolean _
)
'用途
Dim parent As SqlSmoObject
Dim name As String
Dim dataType As DataType
Dim isFileStream As Boolean
Dim instance As New Column(parent, _
name, dataType, isFileStream)
public Column(
SqlSmoObject parent,
string name,
DataType dataType,
bool isFileStream
)
public:
Column(
SqlSmoObject^ parent,
String^ name,
DataType^ dataType,
bool isFileStream
)
new :
parent:SqlSmoObject *
name:string *
dataType:DataType *
isFileStream:bool -> Column
public function Column(
parent : SqlSmoObject,
name : String,
dataType : DataType,
isFileStream : boolean
)
參數
- parent
型別:Microsoft.SqlServer.Management.Smo. . :: . .SqlSmoObject
SqlSmoObject 物件,該物件會指定擁有 Column 物件的父系。
- name
型別:System. . :: . .String
指定資料行名稱的 String 值。
- dataType
型別:Microsoft.SqlServer.Management.Smo. . :: . .DataType
DataType 物件值,指定指派給資料行的資料類型。
- isFileStream
型別:System. . :: . .Boolean
Boolean 值,指定是否會將 FILESTREAM 屬性附加至資料行。
備註
If isFileStream is true and dataType is any value except [T:Microsoft.SqlServer.Management.Smo.DataType.VarBinaryMax,] an error is generated.