The SafeDataReader type exposes the following members.

Constructors

  NameDescription
Public methodSafeDataReader
Initializes the SafeDataReader object to use data from the provided DataReader object.

Methods

  NameDescription
Public methodClose
Closes the datareader.
Public methodDispose()()()()
Disposes the object.
Protected methodDispose(Boolean)
Disposes the object.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Object finalizer.
(Overrides Object..::..Finalize()()()().)
Public methodGetBoolean(Int32)
Gets a boolean value from the datareader.
Public methodGetBoolean(String)
Gets a boolean value from the datareader.
Public methodGetByte(Int32)
Gets a byte value from the datareader.
Public methodGetByte(String)
Gets a byte value from the datareader.
Public methodGetBytes(Int32, Int64, array<Byte>[]()[][], Int32, Int32)
Invokes the GetBytes method of the underlying datareader.
Public methodGetBytes(String, Int64, array<Byte>[]()[][], Int32, Int32)
Invokes the GetBytes method of the underlying datareader.
Public methodGetChar(Int32)
Gets a char value from the datareader.
Public methodGetChar(String)
Gets a char value from the datareader.
Public methodGetChars(Int32, Int64, array<Char>[]()[][], Int32, Int32)
Invokes the GetChars method of the underlying datareader.
Public methodGetChars(String, Int64, array<Char>[]()[][], Int32, Int32)
Invokes the GetChars method of the underlying datareader.
Public methodGetData(Int32)
Invokes the GetData method of the underlying datareader.
Public methodGetData(String)
Invokes the GetData method of the underlying datareader.
Public methodGetDataTypeName(Int32)
Invokes the GetDataTypeName method of the underlying datareader.
Public methodGetDataTypeName(String)
Invokes the GetDataTypeName method of the underlying datareader.
Public methodGetDateTime(Int32)
Gets a date value from the datareader.
Public methodGetDateTime(String)
Gets a date value from the datareader.
Public methodGetDecimal(Int32)
Gets a decimal value from the datareader.
Public methodGetDecimal(String)
Gets a decimal value from the datareader.
Public methodGetDouble(Int32)
Gets a double from the datareader.
Public methodGetDouble(String)
Gets a double from the datareader.
Public methodGetFieldType(Int32)
Invokes the GetFieldType method of the underlying datareader.
Public methodGetFieldType(String)
Invokes the GetFieldType method of the underlying datareader.
Public methodGetFloat(Int32)
Gets a Single value from the datareader.
Public methodGetFloat(String)
Gets a Single value from the datareader.
Public methodGetGuid(Int32)
Gets a Guid value from the datareader.
Public methodGetGuid(String)
Gets a Guid value from the datareader.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetInt16(Int32)
Gets a Short value from the datareader.
Public methodGetInt16(String)
Gets a Short value from the datareader.
Public methodGetInt32(Int32)
Gets an integer from the datareader.
Public methodGetInt32(String)
Gets an integer from the datareader.
Public methodGetInt64(Int32)
Gets a Long value from the datareader.
Public methodGetInt64(String)
Gets a Long value from the datareader.
Public methodGetName
Invokes the GetName method of the underlying datareader.
Public methodGetOrdinal
Gets an ordinal value from the datareader.
Public methodGetSchemaTable
Invokes the GetSchemaTable method of the underlying datareader.
Public methodGetString(Int32)
Gets a string value from the datareader.
Public methodGetString(String)
Gets a string value from the datareader.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetValue(Int32)
Gets a value of type Object from the datareader.
Public methodGetValue(String)
Gets a value of type Object from the datareader.
Public methodGetValues
Invokes the GetValues method of the underlying datareader.
Public methodIsDBNull(Int32)
Invokes the IsDBNull method of the underlying datareader.
Public methodIsDBNull(String)
Invokes the IsDBNull method of the underlying datareader.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodNextResult
Moves to the next result set in the datareader.
Public methodRead
Reads the next row of data from the datareader.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)

Properties

  NameDescription
Protected propertyDataReader
Get a reference to the underlying data reader object that actually contains the data from the data source.
Public propertyDepth
Returns the depth property value from the datareader.
Public propertyFieldCount
Returns the FieldCount property from the datareader.
Public propertyIsClosed
Returns the IsClosed property value from the datareader.
Public propertyItem[([( Int32])])
Returns a value from the datareader.
Public propertyItem[([( String])])
Returns a value from the datareader.
Public propertyRecordsAffected
Returns the RecordsAffected property value from the underlying datareader.

See Also