Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Initializes a new instance of the Column class that uses the specified parent, datayype, and optionally adding the FILESTREAM attribute.
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, _
isFileStream As Boolean _
)
'Usage
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
)
Parameter
- parent
Typ: Microsoft.SqlServer.Management.Smo.SqlSmoObject
A SqlSmoObject object that specifies the parent that owns the Column object.
- name
Typ: System.String
A String value that specifies the name of the column.
- dataType
Typ: Microsoft.SqlServer.Management.Smo.DataType
A DataType object value that specifies the data type assigned to the column.
- isFileStream
Typ: System.Boolean
A Boolean value that specifies if the FILESTREAM attribute will be attached to the column.
Hinweise
If isFileStream is true and dataType is any value except [T:Microsoft.SqlServer.Management.Smo.DataType.VarBinaryMax,] an error is generated.
Beispiele
Arbeiten mit Datenbankobjekten