VistaDB 5






VistaDB.DDA Namespace > IVistaDBTableSchema Interface > DefineColumnAttributes Method : DefineColumnAttributes(String,Boolean,Boolean,Boolean,Boolean,String,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
This argument is OBSOLETE (may pass null). The underlying Caption attribute is obsolete and is not persisted in the database schema. Use the name and description arguments instead.
The description of the column
DefineColumnAttributes(String,Boolean,Boolean,Boolean,Boolean,String,String) Method
Define column's attributes.
Syntax
'Declaration
 
<System.ObsoleteAttribute("The caption argument to this method is obsolete.  The overload without a caption argument should be used instead.")>
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 caption As System.String, _
   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 caption As System.String
Dim description As System.String
Dim value As IVistaDBColumnAttributes
 
value = instance.DefineColumnAttributes(name, allowNull, readOnly, encrypted, packed, caption, description)
[System.Obsolete("The caption argument to this method is obsolete.  The overload without a caption argument should be used instead.")]
IVistaDBColumnAttributes DefineColumnAttributes( 
   System.string name,
   System.bool allowNull,
   System.bool readOnly,
   System.bool encrypted,
   System.bool packed,
   System.string caption,
   System.string description
)
function DefineColumnAttributes( 
    name: System.String;
    allowNull: System.Boolean;
    readOnly: System.Boolean;
    encrypted: System.Boolean;
    packed: System.Boolean;
    caption: System.String;
    description: System.String
): IVistaDBColumnAttributes; 
System.ObsoleteAttribute("The caption argument to this method is obsolete.  The overload without a caption argument should be used instead.")
function DefineColumnAttributes( 
   name : System.String,
   allowNull : System.boolean,
   readOnly : System.boolean,
   encrypted : System.boolean,
   packed : System.boolean,
   caption : System.String,
   description : System.String
) : IVistaDBColumnAttributes;
[System.Obsolete("The caption argument to this method is obsolete.  The overload without a caption argument should be used instead.")]
IVistaDBColumnAttributes* DefineColumnAttributes( 
   System.string* name,
   System.bool allowNull,
   System.bool readOnly,
   System.bool encrypted,
   System.bool packed,
   System.string* caption,
   System.string* description
) 
[System.Obsolete("The caption argument to this method is obsolete.  The overload without a caption argument should be used instead.")]
IVistaDBColumnAttributes^ DefineColumnAttributes( 
   System.String^ name,
   System.bool allowNull,
   System.bool readOnly,
   System.bool encrypted,
   System.bool packed,
   System.String^ caption,
   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
caption
This argument is OBSOLETE (may pass null). The underlying Caption attribute is obsolete and is not persisted in the database schema. Use the name and description arguments instead.
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