| |||||
IDataRecord.IsDBNull MethodSystem.Data Namespace IDataRecord Class Checks whether a specified field is set to null. [ VB ] NotOverridable Public Function IsDBNull ( _ ByVal index As Integer _ ) As Boolean [ C# ] public bool IsDBNull ( int index ); [ C++ ] public: __sealed bool IsDBNull ( int index ); [ JScript ] public function IsDBNull ( index : int ) : Boolean Parameters
Return ValueThis method returns only a boolean value: true if the specified column is equivalent to DBNull; otherwise, false. The property is read only with no default value. RemarksThe IsDBNull method is used to check whether a given column contains non-existent or missing values. This method is typically called before invoking any of the typed accessor methods ( GetString, GetInt32, GetDouble, GetDateTime, and so on ) to avoid raising an error. See Also |
| ||||
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme