点击或拖拽改变大小

HslExtensionStartsWithAndNumber 方法 (String, String)

判断一个地址是否是指定的字符串开头,并且后面跟着数字,如果是,返回 true,反之,返回 false
Determines whether an address starts with a specified string followed by a number, returns true if so, and false if not

命名空间:  HslCommunication
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.1.0.0 (12.1.0.0)
语法
public static bool StartsWithAndNumber(
	this string address,
	string[] code
)

参数

address
类型:SystemString
等待判断的地址
code
类型:SystemString
地址类型

返回值

类型:Boolean
是否指定的地址起始

备注

在 Visual Basic 和 C# 中,这个方法可以当成为类型 String 的实例方法来调用。在采用实例方法语法调用这个方法时,请省略第一个参数。请参考 扩展方法 (Visual Basic)扩展方法 (C# 编程指南) 获取更多信息。
参见