mscorlib(4.0.0.0) API with additions
System.DBNull Class Reference

Represents a nonexistent value. This class cannot be inherited. More...

Inheritance diagram for System.DBNull:
[legend]
Collaboration diagram for System.DBNull:
[legend]

Public Member Functions

void GetObjectData (SerializationInfo info, StreamingContext context)
 Implements the T:System.Runtime.Serialization.ISerializable interface and returns the data needed to serialize the T:System.DBNull object. More...
 
override string ToString ()
 Returns an empty string (F:System.String.Empty). More...
 
string ToString (IFormatProvider provider)
 Returns an empty string using the specified T:System.IFormatProvider. More...
 
TypeCode GetTypeCode ()
 Gets the T:System.TypeCode value for T:System.DBNull. More...
 

Static Public Attributes

static readonly DBNull Value = new DBNull()
 Represents the sole instance of the T:System.DBNull class. More...
 

Detailed Description

Represents a nonexistent value. This class cannot be inherited.

Definition at line 10 of file DBNull.cs.

Member Function Documentation

◆ GetObjectData()

void System.DBNull.GetObjectData ( SerializationInfo  info,
StreamingContext  context 
)

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

Parameters
infoA T:System.Runtime.Serialization.SerializationInfo object containing information required to serialize the T:System.DBNull object.
contextA T:System.Runtime.Serialization.StreamingContext object containing the source and destination of the serialized stream associated with the T:System.DBNull object.
Exceptions
T:System.ArgumentNullExceptioninfo is null.

Implements System.Runtime.Serialization.ISerializable.

Definition at line 30 of file DBNull.cs.

◆ GetTypeCode()

TypeCode System.DBNull.GetTypeCode ( )

Gets the T:System.TypeCode value for T:System.DBNull.

Returns
The T:System.TypeCode value for T:System.DBNull, which is F:System.TypeCode.DBNull.

Implements System.IConvertible.

Definition at line 53 of file DBNull.cs.

◆ ToString() [1/2]

override string System.DBNull.ToString ( )

Returns an empty string (F:System.String.Empty).

Returns
An empty string (F:System.String.Empty).

Definition at line 37 of file DBNull.cs.

◆ ToString() [2/2]

string System.DBNull.ToString ( IFormatProvider  provider)

Returns an empty string using the specified T:System.IFormatProvider.

Parameters
providerThe T:System.IFormatProvider to be used to format the return value.-or- null to obtain the format information from the current locale setting of the operating system.
Returns
An empty string (F:System.String.Empty).

Implements System.IConvertible.

Definition at line 46 of file DBNull.cs.

Member Data Documentation

◆ Value

readonly DBNull System.DBNull.Value = new DBNull()
static

Represents the sole instance of the T:System.DBNull class.

Definition at line 13 of file DBNull.cs.


The documentation for this class was generated from the following file: