Chili.Opf3 Send comments on this topic.
AllowDBNull Property
See Also 
Chili.Opf3 Namespace > FieldAttribute Class : AllowDBNull Property




Specifies whether the field connected with the property is allowed to be DBNull in the storage.

Syntax

Visual Basic (Declaration) 
Public Property AllowDBNull As Boolean
Visual Basic (Usage)Copy Code
Dim instance As FieldAttribute
Dim value As Boolean
 
instance.AllowDBNull = value
 
value = instance.AllowDBNull
C# 
public bool AllowDBNull {get; set;}
Managed Extensions for C++ 
public: __property bool get_AllowDBNull();
public: __property void set_AllowDBNull( 
   bool value
);
C++/CLI 
public:
property bool AllowDBNull {
   bool get();
   void set (bool value);
}

Return Value

Returns true if DBNull is allowed to be saved in the field.

Remarks

The default behaviour is true, since usually properties are allowed to be DBNull. Set it to false to avoid saving of DBNull values (such properties are sometimes also named mandatory properties)

Requirements

Platforms: Windows 2000, Windows XP family, Windows Server 2003 family, Windows Vista family

See Also