Gets and returns the field value from the database record associated with this object. Returns DBNull.Value if the field is NULL.

Namespace: DatabaseObjects
Assembly: DatabaseObjects (in DatabaseObjects.dll) Version: 3.8.1.0

Syntax

C#
protected Object GetFieldValue(
	string strFieldName
)
Visual Basic
Protected Function GetFieldValue ( _
	strFieldName As String _
) As Object
Visual C++
protected:
Object^ GetFieldValue(
	String^ strFieldName
)

Parameters

strFieldName
Type: System..::..String
The name of the database field that is to be read. Must be a field in the table associated with this object's record.

Return Value

[Missing <returns> documentation for "M:DatabaseObjects.DatabaseObject.GetFieldValue(System.String)"]

Exceptions

ExceptionCondition
DatabaseObjects.Exceptions..::..ObjectDoesNotExistExceptionIf the object has not already been saved.

See Also