RecordItem Property | |
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; }
Public Default Property Item (
column As String
) As Object
Get
Set
Parameters
- column
- Type: SystemString
The name of the column. Case is not important.
Return Value
Type:
ObjectThe value of the column.
Exceptions 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:
...
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:
Record r = myTable.CreateRecord();
r["CustomerName"] = "My Corporate";
r["Location"] = new LatLon(36, -122);
myTransactionalRepository.BeginTransaction();
myTable.Insert(r);
myTransactionalRepository.EndTransaction();
See Also