XsltLibrary.RelationalOperator 方法

定义

计算表达式 left 是大于还是等于或小于或等于 right 基于传递的 opCode 表达式。

此 API 支持产品基础结构,不能在代码中直接使用。

public:
 bool RelationalOperator(double opCode, System::Collections::Generic::IList<System::Xml::XPath::XPathItem ^> ^ left, System::Collections::Generic::IList<System::Xml::XPath::XPathItem ^> ^ right);
public bool RelationalOperator(double opCode, System.Collections.Generic.IList<System.Xml.XPath.XPathItem> left, System.Collections.Generic.IList<System.Xml.XPath.XPathItem> right);
member this.RelationalOperator : double * System.Collections.Generic.IList<System.Xml.XPath.XPathItem> * System.Collections.Generic.IList<System.Xml.XPath.XPathItem> -> bool
Public Function RelationalOperator (opCode As Double, left As IList(Of XPathItem), right As IList(Of XPathItem)) As Boolean

参数

opCode
Double

指定如何执行两个表达式的计算:

如果 opCode 等于 2,则计算 XPath 表达式“向左 < 右”。

如果 opCode 等于 3,则计算 XPath 表达式“left <= right”。

如果 opCode 等于 4,则计算 XPath 表达式“左 > 右”。

如果 opCode 等于 5,则计算 XPath 表达式“left >= right”

left
IList<XPathItem>

要计算的表达式。

right
IList<XPathItem>

要计算的表达式。

返回

如果左侧表达式大于或等于右表达式,则为 true 的布尔值。

适用于