C# Класс BF2Statistics.ASP.Ip2nation

A class used to get Country information from IPv4 addresses
Показать файл Открыть проект

Открытые методы

Метод Описание
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()

Приватные методы

Метод Описание
Ip2nation ( ) : System

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

Описание методов

GetCountryCode() публичный статический Метод

Gets the country code for a string IP address
public static GetCountryCode ( IPAddress IP ) : string
IP System.Net.IPAddress
Результат string

GetCountyNameFromCode() публичный статический Метод

Fethces the full country name from a country code supplied from GetCountryCode()
public static GetCountyNameFromCode ( string Code ) : string
Code string
Результат string