AutoCAD Map 3D 2009 Geospatial Platform Reference

AutoCAD Map 3D Geospatial Platform API

MgDataPropertyDefinition Class Reference
[MgDataPropertyDefinition]

Inherits MgPropertyDefinition.

List of all members.


Detailed Description

Defines a data property belonging to a feature class.

Remarks:
This definition can represent simple value types like integers or strings.

Public Member Functions

INT32 GetDataType ()
 Gets the data type of this property.
STRING GetDefaultValue ()
 Gets the default value for this property.
INT32 GetLength ()
 
bool GetNullable ()
 
INT32 GetPrecision ()
 
bool GetReadOnly ()
 
INT32 GetScale ()
 
bool IsAutoGenerated ()
 
 MgDataPropertyDefinition (CREFSTRING name)
 Constructs an MgDataPropertyDefinition object.
void SetAutoGeneration (bool value)
 Sets a boolean value that determines whether this is an auto-generated property.
void SetDataType (INT32 type)
 
void SetDefaultValue (CREFSTRING value)
 Sets the default value for this property.
void SetLength (INT32 len)
 Sets the maximum length of a String, BLOB, or CLOB data property. This value does not apply to any other data type.
void SetNullable (bool value)
 Determines whether this property's value can be null.
void SetPrecision (INT32 precision)
 Sets the precision (total number of digits) of a decimal data property. This value does not apply to any other data type.
void SetReadOnly (bool value)
 Determines whether this property is read-only.
void SetScale (INT32 scale)
 Sets the scale (number of digits to the right of the decimal point) of a decimal data property. This value does not apply to any other data type.