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
Requirements
Platforms: Windows 2000, Windows XP family, Windows Server 2003 family, Windows Vista family
See Also