HslHelperExtractBooleanParameter 方法 (String, String) |
解析地址的附加bool参数方法,比如你的地址是s=true;D100,可以提取出"s"的值的同时,修改地址本身,如果"s"不存在的话,返回错误的消息内容
The method of parsing additional parameters of the address, for example, if your address is s=true;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<bool> ExtractBooleanParameter(
ref string address,
string paraName
)
Public Shared Function ExtractBooleanParameter (
ByRef address As String,
paraName As String
) As OperateResult(Of Boolean)
public:
static OperateResult<bool>^ ExtractBooleanParameter(
String^% address,
String^ paraName
)
static member ExtractBooleanParameter :
address : string byref *
paraName : string -> OperateResult<bool>
参数
- address
- 类型:SystemString
复杂的地址格式,比如:s=true;D100 - paraName
- 类型:SystemString
等待提取的参数名称
返回值
类型:
OperateResultBoolean解析后的参数结果内容
参见