The methods of the DBNull class are listed below. For a complete list of DBNull class members, see the DBNull Members topic.
Equals | Determines whether the specified Object is equal to DBNull. |
GetHashCode (inherited from Object) | Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
GetObjectData | Implements the ISerializable interface and returns the data needed to serialize the DBNull object. |
GetType (inherited from Object) | Gets the Type of the Object. |
GetTypeCode | Gets the TypeCode value for DBNull. |
SetObjectData | Implements the ISerializable interface. |
ToBoolean | Throws an InvalidCastException. Called by the ToType method. |
ToByte | Throws an InvalidCastException. Called by the ToType method. |
ToChar | Throws an InvalidCastException. Called by the ToType method. |
ToDateTime | Throws an InvalidCastException. Called by the ToType method. |
ToDecimal | Throws an InvalidCastException. Called by the ToType method. |
ToDouble | Throws an InvalidCastException. Called by the ToType method. |
ToInt16 | Throws an InvalidCastException. Called by the ToType method. |
ToInt32 | Throws an InvalidCastException. Called by the ToType method. |
ToInt64 | Throws an InvalidCastException. Called by the ToType method. |
ToSByte | Throws an InvalidCastException. Called by the ToType method. |
ToSingle | Throws an InvalidCastException. Called by the ToType method. |
ToString | Returns an empty string. |
ToType | Calls the appropriate method, depending on the specified type. |
ToUInt16 | Throws an InvalidCastException. Called by the ToType method. |
ToUInt32 | Throws an InvalidCastException. Called by the ToType method. |
ToUInt64 | Throws an InvalidCastException. Called by the ToType method. |
Finalize (inherited from Object) | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by the Garbage Collector (GC). This method may be ignored by the runtime; therefore, necessary cleanup operations should be done elsewhere. |
MemberwiseClone (inherited from Object) | Creates a shallow copy of the current Object. |