Click or drag to resize

TableCollectionTryGetTable Method

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Gets a Table object from this collection specified by name.

Namespace:  Telogis.GeoBase.Transactional
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public bool TryGetTable(
	string name,
	out Table result
)

Parameters

name
Type: SystemString
The name of the Table to return. Case is not important.
result
Type: Telogis.GeoBase.TransactionalTable
The named table.

Return Value

Type: Boolean
True if the the specified table was found.
Examples
C#
// get the table named "warehouses", note that case is not important
Table myWarehouses;
if (!myTransactionalRepository.Tables.TryGetTable("Warehouses", out myWarehouses)) {
    // Create the table...
} else {
    Record first = myWarehouses.GetRecord(0);
    ...
}
See Also