点击或拖拽改变大小

HslExtensionStartsWith 方法

Determines whether the beginning of this string instance matches the specified string.

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

参数

address
类型:SystemString

[缺少 "M:HslCommunication.HslExtension.StartsWith(System.String,System.String[])" 的 <param name="address"/> 文档]

code
类型:SystemString

[缺少 "M:HslCommunication.HslExtension.StartsWith(System.String,System.String[])" 的 <param name="code"/> 文档]

返回值

类型:Boolean
if value matches the beginning of this string; otherwise, .

备注

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