DatabaseReader Constructor (String, IEnumerableString, FileAccessMode) |
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
)
Public Sub New (
file As String,
locales As IEnumerable(Of String),
Optional mode As FileAccessMode = FileAccessMode.MemoryMapped
)
public:
DatabaseReader(
String^ file,
IEnumerable<String^>^ locales,
FileAccessMode mode = FileAccessMode::MemoryMapped
)
new :
file : string *
locales : IEnumerable<string> *
?mode : FileAccessMode
(* Defaults:
let _mode = defaultArg mode FileAccessMode.MemoryMapped
*)
-> DatabaseReader
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