HslHelperExtractParameter 方法 (String, String) |
解析地址的附加参数方法,比如你的地址是s=100;D100,可以提取出"s"的值的同时,修改地址本身,如果"s"不存在的话,返回错误的消息内容
The method of parsing additional parameters of the address, for example, if your address is s=100;D100, you can extract the value of "s" and modify the address itself.
If "s" does not exist, return the wrong message content
命名空间:
HslCommunication.Core
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static OperateResult<int> ExtractParameter(
ref string address,
string paraName
)
Public Shared Function ExtractParameter (
ByRef address As String,
paraName As String
) As OperateResult(Of Integer)
public:
static OperateResult<int>^ ExtractParameter(
String^% address,
String^ paraName
)
static member ExtractParameter :
address : string byref *
paraName : string -> OperateResult<int>
参数
- address
- 类型:SystemString
复杂的地址格式,比如:s=100;D100 - paraName
- 类型:SystemString
等待提取的参数名称
返回值
类型:
OperateResultInt32解析后的参数结果内容
参见