C# Class BF2Statistics.ASP.Ip2nation

A class used to get Country information from IPv4 addresses
Afficher le fichier Open project: BF2Statistics/ControlCenter

Méthodes publiques

Méthode Description
GetCountryCode ( IPAddress IP ) : string

Gets the country code for a string IP address

GetCountyNameFromCode ( string Code ) : string

Fethces the full country name from a country code supplied from GetCountryCode()

Private Methods

Méthode Description
Ip2nation ( ) : System

Static Constructor: Used to create the connection string to the Ip2Nation.db file

Method Details

GetCountryCode() public static méthode

Gets the country code for a string IP address
public static GetCountryCode ( IPAddress IP ) : string
IP System.Net.IPAddress
Résultat string

GetCountyNameFromCode() public static méthode

Fethces the full country name from a country code supplied from GetCountryCode()
public static GetCountyNameFromCode ( string Code ) : string
Code string
Résultat string