Click or drag to resize

DatabaseReader Constructor (String, IEnumerableString, FileAccessMode)

Initializes a new instance of the DatabaseReader class.

Namespace:  MaxMind.GeoIP2
Assembly:  MaxMind.GeoIP2 (in MaxMind.GeoIP2.dll) Version: 3.0.0
Syntax
public DatabaseReader(
	string file,
	IEnumerable<string> locales,
	FileAccessMode mode = FileAccessMode.MemoryMapped
)

Parameters

file
Type: SystemString
The MaxMind DB file.
locales
Type: System.Collections.GenericIEnumerableString
List of locale codes to use in name property from most preferred to least preferred.
mode (Optional)
Type: MaxMind.DbFileAccessMode
The mode by which to access the DB file.
See Also