asp.net.ph

IDataRecord.IsDBNull Method

System.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

index
The zero-based column index.

Return Value

This 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.

Remarks

The 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

IDataRecord Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 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 asp.net.ph