System.DBNull Members

The members of System.DBNull are listed below.

See Also: Inherited members from System.Object

Public Fields

static readonly
ValueDBNull.

Represents the sole instance of the DBNull class.

Public Methods

GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)

Implements the System.Runtime.Serialization.ISerializable interface and returns the data needed to serialize the DBNull object.

GetTypeCode() : TypeCode

Gets the TypeCode value for DBNull.

override
ToString() : string

Returns an empty string (string.Empty).

ToString(IFormatProvider) : string

Returns an empty string using the specified IFormatProvider.

Explicitly Implemented Interface Members

IConvertible.ToBoolean

This conversion is not supported. Attempting to make this conversion throws an InvalidCastException.

IConvertible.ToByte

This conversion is not supported. Attempting to make this conversion throws an InvalidCastException.

IConvertible.ToChar

This conversion is not supported. Attempting to make this conversion throws an InvalidCastException.

IConvertible.ToDateTime

This conversion is not supported. Attempting to make this conversion throws an InvalidCastException.

IConvertible.ToDecimal

This conversion is not supported. Attempting to make this conversion throws an InvalidCastException.

IConvertible.ToDouble

This conversion is not supported. Attempting to make this conversion throws an InvalidCastException.

IConvertible.ToInt16

This conversion is not supported. Attempting to make this conversion throws an InvalidCastException.

IConvertible.ToInt32

This conversion is not supported. Attempting to make this conversion throws an InvalidCastException.

IConvertible.ToInt64

This conversion is not supported. Attempting to make this conversion throws an InvalidCastException.

IConvertible.ToSByte

This conversion is not supported. Attempting to make this conversion throws an InvalidCastException.

IConvertible.ToSingle

This conversion is not supported. Attempting to make this conversion throws an InvalidCastException.

IConvertible.ToType

Converts the current DBNull object to the specified type.

IConvertible.ToUInt16

This conversion is not supported. Attempting to make this conversion throws an InvalidCastException.

IConvertible.ToUInt32

This conversion is not supported. Attempting to make this conversion throws an InvalidCastException.

IConvertible.ToUInt64

This conversion is not supported. Attempting to make this conversion throws an InvalidCastException.