Click or drag to resize

Repository Class

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
A Repository is used to manage GeoBase data. This data is required to support GeoBase services (such as routing and mapping). Each thread in your application may have its own Repository. See remarks.
Inheritance Hierarchy

Namespace:  Telogis.GeoBase.Repositories
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public abstract class Repository : IDisposable

The Repository type exposes the following members.

Properties
  NameDescription
Public propertyBoundingBoxData
Implemented by derived classes to retrieve the RepositoryBoundingBoxData objects that describe the bounding boxes of the repository content.
Public propertyBoundingBoxes
Implemented by derived classes to retrieve the BoundingBox objects that contain the repository content.
Public propertyCopyrightString
Implemented by derived classes to retrieve a repository's copyright information.
Public propertyCountries
Implemented by derived classes to retrieve an array containing every Country present in a repository.
Public propertyStatic memberCurrentThreadRepository
Gets or Sets the repository used to support GeoBase services. The repository may be one of: GeoStreamRepository or LocalRepository (either a SimpleRepository or MultiRepository).
Public propertyDatasetHashCode
Implemented by derived classes to retrieve the hash code for a repository's data set.
Public propertyDatasetHashCodeString
Provides a consistent string representation of DatasetHashCode.
Public propertyStatic memberDefault
Gets or Sets the default repository used by all threads to support GeoBase services.
Public propertyHasGlobalData
Implemented by derived classes to determine whether a repository contains global data.
Public propertyIsDisposed
Gets whether the repository has been Disposed.
Public propertyRegions
Implemented by derived classes to retrieve an array of Regions present in a repository.
Public propertyVendorVersion
Implemented by derived classes to retrieve the vendor version for a repository's data set.
Top
Methods
  NameDescription
Public methodDispose
Disposes of this LocalRepository. See remarks.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetDrivingSide
Indicates which side of the road vehicles drive in the specified country.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHasCountry
Implemented by derived classes to determine whether a repository contains a given Country.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks

The default repository used for this application should be set using the Default method.

The current thread's Repository may be set using the CurrentThreadRepository method to one of: GeoStreamRepository, MultiRepository or SimpleRepository.

A default Repository may be set for all newly-created threads using the Default property. You may then use the CurrentThreadRepository property to override the Repository used on a per-thread basis.

The Repository may be changed on-the-fly.

Related articles: Using Repositories to manage data.

See Also