Aracılığıyla paylaş


XsltLibrary.RelationalOperator Yöntem

Tanım

İfadenin geçirilene göre büyük veya eşit ya da küçük ya da buna eşit left right olup olmadığını opCode değerlendirir.

Bu API, ürün altyapısını destekler ve doğrudan kodunuzdan kullanıma yönelik değildir.

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

Parametreler

opCode
Double

İki ifadenin değerlendirilmesini nasıl gerçekleştireceklerini belirtir:

opCode 2'ye eşitse, "sol sağ" XPath ifadesini < değerlendirir.

opCode 3'e eşitse XPath ifadesini "left < = right" olarak değerlendirir.

opCode 4'e eşitse, "sol sağ" XPath ifadesini > değerlendirir.

opCode 5'e eşitse XPath ifadesini "left > = right" olarak değerlendirir

left
IList<XPathItem>

Değerlendirilecek ifade.

right
IList<XPathItem>

Değerlendirilecek ifade.

Döndürülenler

Boolean

Sol ifade sağ ifadeden büyük veya sağ ifadeye eşitse true olan bir Boole değeri.

Şunlara uygulanır