VistaDB 5






VistaDB.DDA Namespace > IVistaDBTableSchema Interface > DefineColumnAttributes Method : DefineColumnAttributes(String,Boolean,Boolean,Boolean,Boolean,String) Method
Column's name
Column can contain nulls
Column cannot be updated
Column level encryption flag. (Obsolete as of VistaDB 5)
The extended type columns is packed when put to database file
The description of the column
DefineColumnAttributes(String,Boolean,Boolean,Boolean,Boolean,String) Method
Define column's attributes.
Syntax
'Declaration
 
Overloads Function DefineColumnAttributes( _
   ByVal name As System.String, _
   ByVal allowNull As System.Boolean, _
   ByVal readOnly As System.Boolean, _
   ByVal encrypted As System.Boolean, _
   ByVal packed As System.Boolean, _
   ByVal description As System.String _
) As IVistaDBColumnAttributes
'Usage
 
Dim instance As IVistaDBTableSchema
Dim name As System.String
Dim allowNull As System.Boolean
Dim readOnly As System.Boolean
Dim encrypted As System.Boolean
Dim packed As System.Boolean
Dim description As System.String
Dim value As IVistaDBColumnAttributes
 
value = instance.DefineColumnAttributes(name, allowNull, readOnly, encrypted, packed, description)
IVistaDBColumnAttributes DefineColumnAttributes( 
   System.string name,
   System.bool allowNull,
   System.bool readOnly,
   System.bool encrypted,
   System.bool packed,
   System.string description
)
function DefineColumnAttributes( 
    name: System.String;
    allowNull: System.Boolean;
    readOnly: System.Boolean;
    encrypted: System.Boolean;
    packed: System.Boolean;
    description: System.String
): IVistaDBColumnAttributes; 
function DefineColumnAttributes( 
   name : System.String,
   allowNull : System.boolean,
   readOnly : System.boolean,
   encrypted : System.boolean,
   packed : System.boolean,
   description : System.String
) : IVistaDBColumnAttributes;
IVistaDBColumnAttributes* DefineColumnAttributes( 
   System.string* name,
   System.bool allowNull,
   System.bool readOnly,
   System.bool encrypted,
   System.bool packed,
   System.string* description
) 
IVistaDBColumnAttributes^ DefineColumnAttributes( 
   System.String^ name,
   System.bool allowNull,
   System.bool readOnly,
   System.bool encrypted,
   System.bool packed,
   System.String^ description
) 

Parameters

name
Column's name
allowNull
Column can contain nulls
readOnly
Column cannot be updated
encrypted
Column level encryption flag. (Obsolete as of VistaDB 5)
packed
The extended type columns is packed when put to database file
description
The description of the column
Remarks
By default the column attributes are: allowNull = true, readOnly = false, encrypted = true (if database encrypted, otherwise = false), packed = false, caption = null, description = null
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also