C# Class AilisidanShow.Helper.GetIpHelper

Datei anzeigen Open project: huoqishi/Code-Library

Public Methods

Method Description
GetBrowser ( ) : string

获取浏览器版本号

GetIP ( ) : string

获取客户端IP地址

GetNetIP ( ) : string

获取公网IP

GetOSVersion ( ) : string

获取操作系统版本号

GetRealIP ( ) : string
IsFromWeChat ( ) : bool

是否来自微浏览器

IsIPAddress ( string str ) : bool
SaveIP ( ) : void

Method Details

GetBrowser() public static method

获取浏览器版本号
public static GetBrowser ( ) : string
return string

GetIP() public static method

获取客户端IP地址
public static GetIP ( ) : string
return string

GetNetIP() public static method

获取公网IP
public static GetNetIP ( ) : string
return string

GetOSVersion() public static method

获取操作系统版本号
public static GetOSVersion ( ) : string
return string

GetRealIP() public static method

public static GetRealIP ( ) : string
return string

IsFromWeChat() public static method

是否来自微浏览器
public static IsFromWeChat ( ) : bool
return bool

IsIPAddress() public static method

public static IsIPAddress ( string str ) : bool
str string
return bool

SaveIP() public static method

public static SaveIP ( ) : void
return void