Api.JetAddColumn method
Add a new column to an existing table.
Namespace: Microsoft.Isam.Esent.Interop
Assembly: Microsoft.Isam.Esent.Interop (in Microsoft.Isam.Esent.Interop.dll)
Syntax
'Declaration
Public Shared Sub JetAddColumn ( _
sesid As JET_SESID, _
tableid As JET_TABLEID, _
column As String, _
columndef As JET_COLUMNDEF, _
defaultValue As Byte(), _
defaultValueSize As Integer, _
<OutAttribute> ByRef columnid As JET_COLUMNID _
)
'Usage
Dim sesid As JET_SESID
Dim tableid As JET_TABLEID
Dim column As String
Dim columndef As JET_COLUMNDEF
Dim defaultValue As Byte()
Dim defaultValueSize As Integer
Dim columnid As JET_COLUMNIDApi.JetAddColumn(sesid, tableid, _
column, columndef, defaultValue, _
defaultValueSize, columnid)
public static void JetAddColumn(
JET_SESID sesid,
JET_TABLEID tableid,
string column,
JET_COLUMNDEF columndef,
byte[] defaultValue,
int defaultValueSize,
out JET_COLUMNID columnid
)
Parameters
sesid
Type: Microsoft.Isam.Esent.Interop.JET_SESIDThe session to use.
tableid
Type: Microsoft.Isam.Esent.Interop.JET_TABLEIDThe table to add the column to.
column
Type: System.StringThe name of the column.
columndef
Type: Microsoft.Isam.Esent.Interop.JET_COLUMNDEFThe definition of the column.
defaultValue
Type: []The default value of the column.
defaultValueSize
Type: System.Int32The size of the default value.
columnid
Type: Microsoft.Isam.Esent.Interop.JET_COLUMNIDReturns the columnid of the new column.