HslHelperExtractStartIndex 方法 |
解析地址的起始地址的方法,比如你的地址是 A[1] , 那么将会返回 1,地址修改为 A,如果不存在起始地址,那么就不修改地址,返回 -1
The method of parsing the starting address of the address, for example, if your address is A[1], then it will return 1,
and the address will be changed to A. If the starting address does not exist, then the address will not be changed and return -1
命名空间:
HslCommunication.Core
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static int ExtractStartIndex(
ref string address
)
Public Shared Function ExtractStartIndex (
ByRef address As String
) As Integer
public:
static int ExtractStartIndex(
String^% address
)
static member ExtractStartIndex :
address : string byref -> int
参数
- address
- 类型:SystemString
复杂的地址格式,比如:A[0]
返回值
类型:
Int32如果存在,就起始位置,不存在就返回 -1
参见