Api.JetSetColumnDefaultValue method
Changes the default value of an existing column.
Namespace: Microsoft.Isam.Esent.Interop
Assembly: Microsoft.Isam.Esent.Interop (in Microsoft.Isam.Esent.Interop.dll)
Syntax
'Declaration
Public Shared Sub JetSetColumnDefaultValue ( _
sesid As JET_SESID, _
dbid As JET_DBID, _
tableName As String, _
columnName As String, _
data As Byte(), _
dataSize As Integer, _
grbit As SetColumnDefaultValueGrbit _
)
'Usage
Dim sesid As JET_SESID
Dim dbid As JET_DBID
Dim tableName As String
Dim columnName As String
Dim data As Byte()
Dim dataSize As Integer
Dim grbit As SetColumnDefaultValueGrbitApi.JetSetColumnDefaultValue(sesid, _
dbid, tableName, columnName, data, _
dataSize, grbit)
public static void JetSetColumnDefaultValue(
JET_SESID sesid,
JET_DBID dbid,
string tableName,
string columnName,
byte[] data,
int dataSize,
SetColumnDefaultValueGrbit grbit
)
Parameters
sesid
Type: Microsoft.Isam.Esent.Interop.JET_SESIDThe session to use.
dbid
Type: Microsoft.Isam.Esent.Interop.JET_DBIDThe database containing the column.
tableName
Type: System.StringThe name of the table containing the column.
columnName
Type: System.StringThe name of the column.
data
Type: []The new default value.
dataSize
Type: System.Int32Size of the new default value.
grbit
Type: Microsoft.Isam.Esent.Interop.SetColumnDefaultValueGrbitColumn default value options.