一款简单易用的基础网络通讯组件库。

TouchSocketCoreUtilityIsIPv4 方法

判断输入的字符串是否是表示一个IP地址

Definition

命名空间: TouchSocket.Core
程序集: TouchSocket.Core (在 TouchSocket.Core.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
C#
public static bool IsIPv4(
	string input
)

参数

input  String
被比较的字符串

返回值

Boolean
是IP地址则为True

参见