C# 클래스 BF2Statistics.ASP.Ip2nation

A class used to get Country information from IPv4 addresses
파일 보기 프로젝트 열기: BF2Statistics/ControlCenter

공개 메소드들

메소드 설명
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