Click or drag to resize

RecordItem Property

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Get or set a column value for this record.

Namespace:  Telogis.GeoBase.Transactional
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public Object this[
	string column
] { get; set; }

Parameters

column
Type: SystemString
The name of the column. Case is not important.

Return Value

Type: Object
The value of the column.
Exceptions
ExceptionCondition
TableColumnNameExceptionThrown if the column is not found.
Remarks
An exception will be thrown if the column name cannot be found.
Examples
The following example shows how to get a column value for a record:
C#
...
foreach (Record r in idx.Query(new ColumnFilter[0])) {
    Console.WriteLine("Customername = {0}, Location = {1}", 
        r["CustomerName"], 
        r["Location"]);
}
Similarly, the following example shows how to set column values for a record:
C#
// we must use the table's CreateRecord() method because different tables will
// have different record structures (due to the design of each table)
Record r = myTable.CreateRecord();

// set some values for the name and location
r["CustomerName"] = "My Corporate";
r["Location"] = new LatLon(36, -122);

// add the record to the repository
myTransactionalRepository.BeginTransaction();
myTable.Insert(r);
myTransactionalRepository.EndTransaction();
See Also